[chore] fix Build (commit) yml #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
push | |
jobs: | |
build: | |
name: Build | |
runs-on: macos-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Archive Project | |
run: | | |
xcodebuild archive -project MyApp/MyApp.xcodeproj \ | |
-scheme MainApp \ | |
-sdk iphoneos \ | |
-configuration Release \ | |
-archivePath MainApp.xcarchive \ | |
CODE_SIGNING_ALLOWED=NO | |
- name: Create ExportOptions.plist | |
run: | | |
echo '${{ secrets.EXPORT_OPTIONS }}' > ExportOptions.plist | |
- name: Create Private Key | |
run: | | |
mkdir private_keys | |
echo -n '${{ secrets.APPLE_API_KEY_BASE64 }}' | base64 --decode > ./private_keys/AuthKey_${{ secrets.APPLE_API_ISSUER_ID }}.p8 | |
- name: Export IPA | |
run: | | |
xcodebuild -exportArchive \ | |
-archivePath MainApp.xcarchive \ | |
-exportOptionsPlist ExportOptions.plist \ | |
-exportPath app.ipa \ | |
-allowProvisioningUpdates \ | |
-authenticationKeyPath `pwd`/private_keys/AuthKey_${{ secrets.APPLE_API_ISSUER_ID }}.p8 \ | |
-authenticationKeyID ${{ secrets.APPLE_API_KEY_ID }} \ | |
-authenticationKeyIssuerID ${{ secrets.APPLE_API_ISSUER_ID }} |