diff --git a/.github/workflows/build-ios.yaml b/.github/workflows/build-ios.yaml index 96b2e81..9145090 100644 --- a/.github/workflows/build-ios.yaml +++ b/.github/workflows/build-ios.yaml @@ -26,6 +26,8 @@ jobs: runs-on: macos-26 timeout-minutes: 60 if: github.server_url == 'https://github.com' + permissions: + contents: write steps: - name: Checkout Repository @@ -76,6 +78,17 @@ jobs: retention-days: 7 if-no-files-found: error + - name: Publish IPA to GitHub Release + if: github.event_name != 'pull_request' + uses: softprops/action-gh-release@v2 + with: + tag_name: ${{ startsWith(github.ref, 'refs/tags/') && github.ref_name || 'latest' }} + name: ${{ startsWith(github.ref, 'refs/tags/') && github.ref_name || 'Oggauer Gemeindetrommler - LATEST' }} + files: build/ios/iphoneos/oggauer-gemeindetrommler.ipa + make_latest: true + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Upload Xcode Logs (on failure) if: failure() uses: actions/upload-artifact@v4