diff --git a/.github/labeler.yml b/.github/labeler.yml index 5ae06dc..fa2f7cf 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -31,5 +31,4 @@ Fastlane: - fastlane/* WIP: -- title: ["*WIP*"] - + - title: ["*WIP*"] diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index d6aa218..3ad6fda 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -17,21 +17,33 @@ jobs: runs-on: macos-latest timeout-minutes: 40 env: - DEVELOPER_DIR: "/Applications/Xcode_15.4.app/Contents/Developer" + DEVELOPER_DIR: "/Applications/Xcode_16.2.app/Contents/Developer" steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - name: archive run: | - xcodebuild archive CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO -project ./ci-sample.xcodeproj -scheme ci-sample -configuration Debug -archivePath ./ci-sample_debug - - name: upload testflight + xcodebuild archive CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO -project ./ci-sample.xcodeproj -scheme ci-sample -configuration Release -archivePath ./ci-sample_release + - name: build env: AUTHKEY_P8_BASE64: ${{ secrets.AUTHKEY_P8_BASE64 }} ISSUER_ID: ${{ secrets.ISSUER_ID }} KEY_ID: ${{ secrets.KEY_ID }} run: | echo "${AUTHKEY_P8_BASE64}" | base64 -d > "${PWD}/Authkey.p8" - xcodebuild -exportArchive -archivePath ci-sample_debug.xcarchive -exportPath ./build_result -exportOptionsPlist ./ExportOptionsDevelopment.plist -allowProvisioningUpdates -authenticationKeyIssuerID "${ISSUER_ID}" -authenticationKeyID "${KEY_ID}" -authenticationKeyPath "${PWD}/Authkey.p8" + xcodebuild -exportArchive -archivePath ci-sample_release.xcarchive -exportPath ./build_result -exportOptionsPlist ./ExportOptionsAppStoreConnect.plist -allowProvisioningUpdates -authenticationKeyIssuerID "${ISSUER_ID}" -authenticationKeyID "${KEY_ID}" -authenticationKeyPath "${PWD}/Authkey.p8" + - name: upload app store connect + env: + ISSUER_ID: ${{ secrets.ISSUER_ID }} + KEY_ID: ${{ secrets.KEY_ID }} + AUTHKEY_P8_BASE64: ${{ secrets.AUTHKEY_P8_BASE64 }} + run: | + mkdir ./private_keys + echo -n "${AUTHKEY_P8_BASE64}" | base64 -d --output ./private_keys/AuthKey_${KEY_ID}.p8 + + xcrun altool --validate-app -f ./build_result/ci-sample.ipa -t ios --apiKey "${KEY_ID}" --apiIssuer "${ISSUER_ID}" + xcrun altool --upload-app -f ./build_result/ci-sample.ipa -t ios --apiKey "${KEY_ID}" --apiIssuer "${ISSUER_ID}" - name: archive + if: ${{ always() }} uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1 with: name: ipa file diff --git a/ExportOptionsAppStoreConnect.plist b/ExportOptionsAppStoreConnect.plist new file mode 100644 index 0000000..f14ec32 --- /dev/null +++ b/ExportOptionsAppStoreConnect.plist @@ -0,0 +1,25 @@ + + + + + destination + export + manageAppVersionAndBuildNumber + + method + app-store-connect + provisioningProfiles + + com.tarappo.uitest + UI Test Sample + + signingStyle + automatic + stripSwiftSymbols + + teamID + BY773RCU69 + uploadSymbols + + + diff --git a/ci-sample/Info.plist b/ci-sample/Info.plist index f8eec6a..61371ad 100644 --- a/ci-sample/Info.plist +++ b/ci-sample/Info.plist @@ -17,7 +17,7 @@ CFBundleShortVersionString 1.0.0 CFBundleVersion - 3 + 40 LSRequiresIPhoneOS UILaunchStoryboardName