chore(ci): upload IPA to TestFlight

This commit is contained in:
Makito
2026-04-05 19:39:38 +09:00
parent 2876817f6f
commit c1fb62317a
2 changed files with 12 additions and 1 deletions
+10 -1
View File
@@ -110,7 +110,7 @@ jobs:
- name: Rename IPA for distribution
run: |
IPA_SOURCE="$(find "$RUNNER_TEMP/output" -name '*.ipa' -print -quit)"
IPA_NAME="${PRODUCT_NAME}-${VERSION}-b${BUILD_NUMBER}-ios.ipa"
IPA_NAME="${PRODUCT_NAME}-${VERSION}_(${BUILD_NUMBER})-ios.ipa"
mv "$IPA_SOURCE" "$RUNNER_TEMP/output/$IPA_NAME"
@@ -123,6 +123,15 @@ jobs:
path: ${{ runner.temp }}/output/${{ env.IPA_NAME }}
if-no-files-found: error
- name: Upload to TestFlight
if: ${{ github.event_name == 'workflow_dispatch' && !inputs.build_only }}
uses: apple-actions/upload-testflight-build@v4
with:
app-path: ${{ runner.temp }}/output/${{ env.IPA_NAME }}
issuer-id: ${{ secrets.APPSTORE_CONNECT_API_ISSUER_ID }}
api-key-id: ${{ secrets.APPSTORE_CONNECT_API_KEY_ID }}
api-private-key: ${{ secrets.APPSTORE_CONNECT_API_KEY }}
- name: Upload to GitHub Releases
if: ${{ github.event_name == 'workflow_dispatch' && !inputs.build_only }}
uses: softprops/action-gh-release@v2