From c1fb62317af13610e3bf41e9d412b2ec07e0836a Mon Sep 17 00:00:00 2001 From: Makito Date: Sun, 5 Apr 2026 19:39:29 +0900 Subject: [PATCH] chore(ci): upload IPA to TestFlight --- .github/workflows/release-pocket-ios.yml | 11 ++++++++++- cspell.config.yaml | 2 ++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-pocket-ios.yml b/.github/workflows/release-pocket-ios.yml index c4b1cb9be..4c6209825 100644 --- a/.github/workflows/release-pocket-ios.yml +++ b/.github/workflows/release-pocket-ios.yml @@ -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 diff --git a/cspell.config.yaml b/cspell.config.yaml index e78747652..8cbe34717 100644 --- a/cspell.config.yaml +++ b/cspell.config.yaml @@ -17,6 +17,7 @@ words: - allseto - animejs - APNG + - APPSTORE - Armbruster - asar - astrojs @@ -296,6 +297,7 @@ words: - taze - tempora - temurin + - testflight - tinyexec - togetherapi - tolist