diff --git a/.github/workflows/build_ipa.yml b/.github/workflows/build_ipa.yml index 9836e3e..23a7ee6 100644 --- a/.github/workflows/build_ipa.yml +++ b/.github/workflows/build_ipa.yml @@ -9,11 +9,13 @@ on: permissions: contents: write - + jobs: build: name: Build Debug IPA runs-on: macos-latest + env: + UPLOAD_IPA: ${{ vars.UPLOAD_IPA || 'false' }} steps: - name: Checkout @@ -49,6 +51,7 @@ jobs: rm -rf Payload StikDebug.app - name: Upload Debug IPA (artifact) + if: env.UPLOAD_IPA == 'true' uses: actions/upload-artifact@v4 with: name: StikDebug-Debug.ipa @@ -56,7 +59,7 @@ jobs: retention-days: 90 - name: Create or Update GitHub Release (GitHub-Alpha) - if: github.event_name == 'push' && github.ref == 'refs/heads/main' + if: env.UPLOAD_IPA == 'true' && github.event_name == 'push' && github.ref == 'refs/heads/main' uses: softprops/action-gh-release@v2 with: tag_name: GitHub-Alpha