Skip to content

Commit

Permalink
Test: yml 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
puretension committed May 25, 2024
1 parent 6c0e3e2 commit 6e60978
Showing 1 changed file with 12 additions and 29 deletions.
41 changes: 12 additions & 29 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
APNS_KEY_PASSWORD: ${{ secrets.APNS_KEY_PASSWORD }}
KEYCHAIN_PASSWORD: ${{ secrets.IOS_RUNNER_LOCAL_KEYCHAIN_PASSWORD }}
EXPORT_OPTIONS_BASE64: ${{ secrets.IOS_EXPORT_OPTIONS_BASE64 }}
PRIVATE_API_KEY_BASE64: ${{ secrets.APP_STORE_CONNECT_API_PRIVATE_KEY_BASE64 }}
PRIVATE_API_KEY: ${{ secrets.APP_STORE_CONNECT_API_PRIVATE_KEY }}
API_KEY: ${{ secrets.APP_STORE_CONNECT_API_KEY_ID }}
API_ISSUER: ${{ secrets.APP_STORE_CONNECT_ISSUER_ID }}
run: |
Expand All @@ -71,7 +71,7 @@ jobs:
echo -n "$APNS_KEY_BASE64" | base64 --decode -o $APNS_KEY_PATH
echo -n "$EXPORT_OPTIONS_BASE64" | base64 --decode -o $EXPORT_OPTIONS_PATH
mkdir -p ~/private_keys
echo -n "$PRIVATE_API_KEY_BASE64" | base64 --decode --output $AUTH_KEY_PATH
echo "$PRIVATE_API_KEY" > $AUTH_KEY_PATH
security create-keychain -p "$KEYCHAIN_PASSWORD" $KEYCHAIN_PATH
security set-keychain-settings -lut 21600 $KEYCHAIN_PATH
Expand Down Expand Up @@ -110,20 +110,23 @@ jobs:

- name: Verify IPA File Exists
run: |
if [ ! -f ios/build/PoppinProject/PoppinProject.ipa ]; then
if [ ! -f ios/build/PoppinProject/*.ipa ]; then
echo "IPA file not found!"
exit 1
else
echo "IPA file exists."
fi
- name: Upload IPA to TestFlight 🆙
uses: apple-actions/upload-testflight-build@v1
with:
app-path: ios/build/PoppinProject/PoppinProject.ipa
issuer-id: ${{ secrets.APP_STORE_CONNECT_ISSUER_ID }}
api-key-id: ${{ secrets.APP_STORE_CONNECT_API_KEY_ID }}
api-private-key: ~/private_keys/AuthKey_${{ secrets.APP_STORE_CONNECT_API_KEY_ID }}.p8
env:
API_KEY: ${{ secrets.APP_STORE_CONNECT_API_KEY_ID }}
API_ISSUER: ${{ secrets.APP_STORE_CONNECT_ISSUER_ID }}
PRIVATE_API_KEY: ${{ secrets.APP_STORE_CONNECT_API_PRIVATE_KEY }}
run: |
mkdir -p ~/private_keys
echo "$PRIVATE_API_KEY" > ~/private_keys/AuthKey_$API_KEY.p8
IPA_FILE=$(find ios/build/PoppinProject -name "*.ipa")
xcrun altool --upload-app --type ios -f "$IPA_FILE" --apiKey "$API_KEY" --apiIssuer "$API_ISSUER" --apiKeyPath ~/private_keys/AuthKey_$API_KEY.p8
- name: Upload Build Logs
if: failure()
Expand All @@ -133,23 +136,3 @@ jobs:
path: |
/Users/runner/Library/Logs
${{ runner.temp }}/build_logs
- name: Rename and Move IPA file
run: |
IPA_FILE=$(find ios/build/PoppinProject -name "*.ipa")
mv "$IPA_FILE" "${GITHUB_WORKSPACE}/build/ios/ipa/MyApp.ipa"
- name: Install private API key P8
env:
PRIVATE_API_KEY_BASE64: ${{ secrets.APP_STORE_CONNECT_API_PRIVATE_KEY_BASE64 }}
API_KEY: ${{ secrets.APP_STORE_CONNECT_API_KEY_ID }}
API_ISSUER: ${{ secrets.APP_STORE_CONNECT_ISSUER_ID }}
run: |
mkdir -p ~/private_keys
echo -n "$PRIVATE_API_KEY_BASE64" | base64 --decode --output ~/private_keys/AuthKey_$API_KEY.p8
- name: Upload IPA to TestFlight
env:
API_KEY: ${{ secrets.APP_STORE_CONNECT_API_KEY_ID }}
API_ISSUER: ${{ secrets.APP_STORE_CONNECT_ISSUER_ID }}
run: xcrun altool --upload-app --type ios -f "${GITHUB_WORKSPACE}/build/ios/ipa/MyApp.ipa" --apiKey $API_KEY --apiIssuer $API_ISSUER

0 comments on commit 6e60978

Please sign in to comment.