chore(ci): add on.release trigger for stage-pocket iOS workflow
This commit is contained in:
@@ -5,6 +5,9 @@ permissions:
|
|||||||
actions: read
|
actions: read
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
release:
|
||||||
|
types:
|
||||||
|
- prereleased
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
no_release_upload:
|
no_release_upload:
|
||||||
@@ -129,14 +132,14 @@ jobs:
|
|||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
|
|
||||||
- name: Install Transporter
|
- 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: |
|
run: |
|
||||||
curl -fsSL "https://itunesconnect.apple.com/WebObjects/iTunesConnect.woa/ra/resources/download/public/Transporter__OSX/bin/" -o "$RUNNER_TEMP/itmstransporter.pkg"
|
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 /
|
sudo installer -pkg "$RUNNER_TEMP/itmstransporter.pkg" -target /
|
||||||
rm -f "$RUNNER_TEMP/itmstransporter.pkg"
|
rm -f "$RUNNER_TEMP/itmstransporter.pkg"
|
||||||
|
|
||||||
- name: Upload to TestFlight
|
- 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
|
uses: apple-actions/upload-testflight-build@v4
|
||||||
with:
|
with:
|
||||||
app-path: ${{ runner.temp }}/output/${{ env.IPA_NAME }}
|
app-path: ${{ runner.temp }}/output/${{ env.IPA_NAME }}
|
||||||
@@ -145,12 +148,12 @@ jobs:
|
|||||||
api-private-key: ${{ secrets.APPSTORE_CONNECT_API_KEY }}
|
api-private-key: ${{ secrets.APPSTORE_CONNECT_API_KEY }}
|
||||||
|
|
||||||
- name: Upload to GitHub Releases
|
- 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
|
uses: softprops/action-gh-release@v2
|
||||||
with:
|
with:
|
||||||
files: ${{ runner.temp }}/output/${{ env.IPA_NAME }}
|
files: ${{ runner.temp }}/output/${{ env.IPA_NAME }}
|
||||||
append_body: true
|
append_body: true
|
||||||
tag_name: ${{ inputs.release_upload_tag }}
|
tag_name: ${{ github.event.release.tag_name || inputs.release_upload_tag }}
|
||||||
|
|
||||||
- name: Clean up signing
|
- name: Clean up signing
|
||||||
if: always()
|
if: always()
|
||||||
|
|||||||
Reference in New Issue
Block a user