From 5301810c0eb4b25cd7afd057d4dfc22840eaf189 Mon Sep 17 00:00:00 2001 From: stopflock Date: Mon, 6 Oct 2025 11:59:05 -0500 Subject: [PATCH] run actions on tags on master, attach to release --- .github/workflows/workflow.yml | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 4eb222a..620e5e0 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -1,5 +1,8 @@ name: Build Release -on: workflow_dispatch +on: + push: + tags: + - '*' jobs: get-version: @@ -154,3 +157,31 @@ jobs: name: deflock_v${{ needs.get-version.outputs.version }}.ipa path: Runner.ipa if-no-files-found: 'error' + + attach-to-release: + name: Attach Assets to Release + needs: [get-version, build-android-apk, build-android-aab, build-ios] + runs-on: ubuntu-latest + steps: + - name: Download APK artifact + uses: actions/download-artifact@v4 + with: + name: deflock_v${{ needs.get-version.outputs.version }}.apk + + - name: Download AAB artifact + uses: actions/download-artifact@v4 + with: + name: deflock_v${{ needs.get-version.outputs.version }}.aab + + - name: Download IPA artifact + uses: actions/download-artifact@v4 + with: + name: deflock_v${{ needs.get-version.outputs.version }}.ipa + + - name: Attach assets to release + uses: softprops/action-gh-release@v2 + with: + files: | + app-release.apk + app-release.aab + Runner.ipa