@@ -247,59 +247,59 @@ jobs:
247247 path : build/ios/iphoneos/SysAdmin-v${{ needs.version.outputs.version }}.ipa
248248
249249 # Release job (runs after both builds complete)
250- # release:
251- # name: Create Release
252- # if: github.event_name == 'push' && github.ref == 'refs/heads/main'
253- # needs: [version, build-android, build-ios]
254- # runs-on: ubuntu-latest
255- # steps:
256- # - uses: actions/checkout@v4
257- # with:
258- # fetch-depth: 0
259- # fetch-tags: true
260- # token: ${{ secrets.TOKEN }}
261-
262- # # Download all artifacts
263- # - name: Download Android Artifacts
264- # uses: actions/download-artifact@v4
265- # with:
266- # name: android-apks
267- # path: android-artifacts
268-
269- # - name: Download iOS Artifacts
270- # uses: actions/download-artifact@v4
271- # with:
272- # name: ios-ipa
273- # path: ios-artifacts
274-
275- # # Create Tag if it doesn't exist
276- # - name: Create Tag
277- # run: |
278- # if ! git rev-parse ${{ needs.version.outputs.tag }} >/dev/null 2>&1; then
279- # git config --local user.email "action@github.com"
280- # git config --local user.name "GitHub Action"
281- # git tag ${{ needs.version.outputs.tag }}
282- # git push origin ${{ needs.version.outputs.tag }}
283- # echo "Created new tag: ${{ needs.version.outputs.tag }}"
284- # else
285- # echo "Tag ${{ needs.version.outputs.tag }} already exists, skipping tag creation"
286- # fi
287-
288- # # Create Release
289- # - name: Create GitHub Release
290- # uses: ncipollo/release-action@v1
291- # with:
292- # artifacts: |
293- # android-artifacts/SysAdmin-v${{ needs.version.outputs.version }}-armeabi-v7a.apk
294- # android-artifacts/SysAdmin-v${{ needs.version.outputs.version }}-arm64-v8a.apk
295- # android-artifacts/SysAdmin-v${{ needs.version.outputs.version }}-x86_64.apk
296- # ios-artifacts/SysAdmin-v${{ needs.version.outputs.version }}.ipa
297- # token: ${{ secrets.TOKEN }}
298- # tag: ${{ needs.version.outputs.tag }}
299- # name: Release ${{ needs.version.outputs.tag }}
300- # body: |
301- # # Release ${{ needs.version.outputs.tag }}
302- # ${{ github.event.head_commit.message }}
303- # #### Full Changelog: [${{ needs.version.outputs.prev_tag }}...${{ needs.version.outputs.tag }}](https://github.com/${{ github.repository }}/compare/${{ needs.version.outputs.prev_tag }}...${{ needs.version.outputs.tag }})
304- # draft: false
305- # prerelease: false
250+ release :
251+ name : Create Release
252+ if : github.event_name == 'push' && github.ref == 'refs/heads/main'
253+ needs : [version, build-android, build-ios]
254+ runs-on : ubuntu-latest
255+ steps :
256+ - uses : actions/checkout@v4
257+ with :
258+ fetch-depth : 0
259+ fetch-tags : true
260+ token : ${{ secrets.TOKEN }}
261+
262+ # Download all artifacts
263+ - name : Download Android Artifacts
264+ uses : actions/download-artifact@v4
265+ with :
266+ name : android-apks
267+ path : android-artifacts
268+
269+ - name : Download iOS Artifacts
270+ uses : actions/download-artifact@v4
271+ with :
272+ name : ios-ipa
273+ path : ios-artifacts
274+
275+ # Create Tag if it doesn't exist
276+ - name : Create Tag
277+ run : |
278+ if ! git rev-parse ${{ needs.version.outputs.tag }} >/dev/null 2>&1; then
279+ git config --local user.email "action@github.com"
280+ git config --local user.name "GitHub Action"
281+ git tag ${{ needs.version.outputs.tag }}
282+ git push origin ${{ needs.version.outputs.tag }}
283+ echo "Created new tag: ${{ needs.version.outputs.tag }}"
284+ else
285+ echo "Tag ${{ needs.version.outputs.tag }} already exists, skipping tag creation"
286+ fi
287+
288+ # Create Release
289+ - name : Create GitHub Release
290+ uses : ncipollo/release-action@v1
291+ with :
292+ artifacts : |
293+ android-artifacts/SysAdmin-v${{ needs.version.outputs.version }}-armeabi-v7a.apk
294+ android-artifacts/SysAdmin-v${{ needs.version.outputs.version }}-arm64-v8a.apk
295+ android-artifacts/SysAdmin-v${{ needs.version.outputs.version }}-x86_64.apk
296+ ios-artifacts/SysAdmin-v${{ needs.version.outputs.version }}.ipa
297+ token : ${{ secrets.TOKEN }}
298+ tag : ${{ needs.version.outputs.tag }}
299+ name : Release ${{ needs.version.outputs.tag }}
300+ body : |
301+ # Release ${{ needs.version.outputs.tag }}
302+ ${{ github.event.head_commit.message }}
303+ #### Full Changelog: [${{ needs.version.outputs.prev_tag }}...${{ needs.version.outputs.tag }}](https://github.com/${{ github.repository }}/compare/${{ needs.version.outputs.prev_tag }}...${{ needs.version.outputs.tag }})
304+ draft : false
305+ prerelease : false
0 commit comments