Skip to content

Commit

Permalink
Update iOS build command and fix upload command in build.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
Evan-2007 committed Nov 21, 2024
1 parent f9d8bd6 commit a890fec
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a890fec

Please sign in to comment.