Skip to content

Commit

Permalink
build: add TEST
Browse files Browse the repository at this point in the history
  • Loading branch information
Bibazavr committed Apr 27, 2024
1 parent ab62380 commit d33863d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/actions/ios/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ inputs:
APP_STORE_API_KEY:
description: MYAPP_UPLOAD_STORE_PASSWORD
required: true
TEST:
description: TEST
required: true

runs:
using: "composite"
Expand All @@ -34,7 +37,8 @@ runs:
APP_STORE_API_KEY: ${{ inputs.APP_STORE_API_KEY }}
run: |
cd ./${CUSTOM_DIR}/ios
xcodebuild -workspace ${IOS_SCHEME}.xcworkspace -scheme $IOS_SCHEME -sdk iphoneos archive -archivePath ${PWD}/build/${IOS_SCHEME}.xcarchive -authenticationKeyPath ~/private_keys/AuthKey_${APP_STORE_API_KEY}.p8 -authenticationKeyIssuerID $APP_STORE_API_ISSUER -authenticationKeyID $APP_STORE_API_KEY -allowProvisioningUpdates -quiet | xcpretty
security unlock-keychain -p $TEST
xcodebuild -workspace ${IOS_SCHEME}.xcworkspace -scheme $IOS_SCHEME -sdk iphoneos archive -archivePath ${PWD}/build/${IOS_SCHEME}.xcarchive -authenticationKeyPath ~/private_keys/AuthKey_${APP_STORE_API_KEY}.p8 -authenticationKeyIssuerID $APP_STORE_API_ISSUER -authenticationKeyID $APP_STORE_API_KEY -allowProvisioningUpdates -quiet
- name: exportArchive
shell: bash
env:
Expand All @@ -43,7 +47,7 @@ runs:
APP_STORE_API_KEY: ${{ inputs.APP_STORE_API_KEY }}
run: |
cd ./${CUSTOM_DIR}/ios
xcodebuild -exportArchive -archivePath ${PWD}/build/${IOS_SCHEME}.xcarchive -exportOptionsPlist ${PWD}/ExportOptions.plist -exportPath $PWD/build -authenticationKeyPath ~/private_keys/AuthKey_${APP_STORE_API_KEY}.p8 -authenticationKeyIssuerID $APP_STORE_API_ISSUER -authenticationKeyID $APP_STORE_API_KEY -allowProvisioningUpdates -quiet | xcpretty
xcodebuild -exportArchive -archivePath ${PWD}/build/${IOS_SCHEME}.xcarchive -exportOptionsPlist ${PWD}/ExportOptions.plist -exportPath $PWD/build -authenticationKeyPath ~/private_keys/AuthKey_${APP_STORE_API_KEY}.p8 -authenticationKeyIssuerID $APP_STORE_API_ISSUER -authenticationKeyID $APP_STORE_API_KEY -allowProvisioningUpdates -quiet
- name: publish
shell: bash
env:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
IOS_SCHEME: ${{ secrets.IOS_SCHEME }}
APP_STORE_API_ISSUER: ${{ secrets.APP_STORE_API_ISSUER }}
APP_STORE_API_KEY: ${{ secrets.APP_STORE_API_KEY }}
TEST: ${{ secrets.TEST }}
# android:
# runs-on: [self-hosted, macOS, ARM64, mobile]
# environment: production-android
Expand Down

0 comments on commit d33863d

Please sign in to comment.