chore(ci): add on.release trigger for stage-pocket iOS workflow

This commit is contained in:
Makito
2026-04-08 00:23:56 +09:00
parent ac013daf0f
commit 1326a3c31a
+7 -4
View File
@@ -5,6 +5,9 @@ permissions:
actions: read
on:
release:
types:
- prereleased
workflow_dispatch:
inputs:
no_release_upload:
@@ -129,14 +132,14 @@ jobs:
if-no-files-found: error
- name: Install Transporter
if: ${{ github.event_name == 'workflow_dispatch' && !inputs.no_testflight_upload }}
if: ${{ github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && !inputs.no_testflight_upload) }}
run: |
curl -fsSL "https://itunesconnect.apple.com/WebObjects/iTunesConnect.woa/ra/resources/download/public/Transporter__OSX/bin/" -o "$RUNNER_TEMP/itmstransporter.pkg"
sudo installer -pkg "$RUNNER_TEMP/itmstransporter.pkg" -target /
rm -f "$RUNNER_TEMP/itmstransporter.pkg"
- name: Upload to TestFlight
if: ${{ github.event_name == 'workflow_dispatch' && !inputs.no_testflight_upload }}
if: ${{ github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && !inputs.no_testflight_upload) }}
uses: apple-actions/upload-testflight-build@v4
with:
app-path: ${{ runner.temp }}/output/${{ env.IPA_NAME }}
@@ -145,12 +148,12 @@ jobs:
api-private-key: ${{ secrets.APPSTORE_CONNECT_API_KEY }}
- name: Upload to GitHub Releases
if: ${{ github.event_name == 'workflow_dispatch' && !inputs.no_release_upload }}
if: ${{ github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && !inputs.no_release_upload) }}
uses: softprops/action-gh-release@v2
with:
files: ${{ runner.temp }}/output/${{ env.IPA_NAME }}
append_body: true
tag_name: ${{ inputs.release_upload_tag }}
tag_name: ${{ github.event.release.tag_name || inputs.release_upload_tag }}
- name: Clean up signing
if: always()