From a890fec70a6541345556fdf024067661c9d0f03b Mon Sep 17 00:00:00 2001 From: Evan-2007 Date: Wed, 20 Nov 2024 21:19:05 -0800 Subject: [PATCH] Update iOS build command and fix upload command in build.yaml --- .github/workflows/build.yaml | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 003fda2..cbe8ff5 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -54,27 +54,27 @@ jobs: - name: Install dependencies run: pnpm install - - name: Write API key to file + - name: write api key to file run: | - # Create the required directory - mkdir -p $HOME/private_keys - # Write the key to the file with the correct naming convention - echo "${{ secrets.APPLE_API_KEY_PATH }}" > $HOME/private_keys/AuthKey_${{ secrets.APPLE_API_KEY }}.p8 - # Ensure the file has the correct permissions - chmod 600 $HOME/private_keys/AuthKey_${{ secrets.APPLE_API_KEY }}.p8 - # Debug: List the file to confirm its presence - ls -l $HOME/private_keys/ - - - name: iOS build (macOS only) + mkdir -p ~/private_keys + echo "${{ secrets.APPLE_API_KEY_PATH }}" > ~/private_keys/authkey_${{secrets.APPLE_API_KEY}}.p8 + chmod 600 ~/private_keys/authkey_${{secrets.APPLE_API_KEY}}.p8 + + - name: ios build (macos only) env: +# IOS_CERTIFICATE: ${{ secrets.IOS_CERTIFICATE }} +# IOS_CERTIFICATE_PASSWORD: ${{ secrets.IOS_CERTIFICATE_PASSWORD }} +# IOS_MOBILE_PROVISION: ${{ secrets.IOS_MOBILE_PROVISION }} APPLE_API_ISSUER: ${{ secrets.APPLE_API_ISSUER }} APPLE_API_KEY: ${{ secrets.APPLE_API_KEY }} - APPLE_API_KEY_PATH: $HOME/private_keys/AuthKey_${{ secrets.APPLE_API_KEY }}.p8 + APPLE_API_KEY_PATH: ~/private_keys/authkey_${{secrets.APPLE_API_KEY}}.p8 + if: matrix.os == 'macos-latest' run: | rustup target add aarch64-apple-ios pnpm tauri ios build --export-method app-store-connect - xcrun altool --upload-app --type ios --file "src-tauri/gen/apple/build/arm64/amplitune.ipa" --apiKey ${{ secrets.APPLE_API_KEY }} --apiIssuer ${{ secrets.APPLE_API_ISSUER }} --skip-submission + xcrun altool --upload-app --type ios --file "src-tauri/gen/apple/build/arm64/amplitune.ipa" --apiKey ${{ secrets.APPLE_API_KEY }} --apiIssuer ${{ secrets.APPLE_API_ISSUER }} --skip-submission + - name: Import Apple Developer Certificate