Skip to content

Commit

Permalink
Add a APPLE_APPS_USERNAME env var to testflight workflow, also actual…
Browse files Browse the repository at this point in the history
…ly create the amplifyConfiguration.json file from the ENV
  • Loading branch information
JakubJankowski committed Dec 12, 2022
1 parent bb06400 commit f56a9e1
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/testflight.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ env:
FASTLANE_XCODE_LIST_TIMEOUT: 100
FASTLANE_XCODEBUILD_SETTINGS_RETRIES: 6
MATCH_DEPLOY_KEY: ${{ secrets.APPLE_APPS_MATCH_DEPLOY_KEY }}
APPLE_APPS_USERNAME: ${{ secrets.APPLE_APPS_USERNAME }}

jobs:
build:
Expand Down Expand Up @@ -39,16 +40,17 @@ jobs:
env:
MAPBOX_DOWNLOADS_TOKEN: ${{ secrets.MAPBOX_DOWNLOADS_TOKEN }}

- name: Configure runtime secrets and ENVs
- name: Create runtime secret files
run: |
echo "MAPBOX_ACCESS_TOKEN = $MAPBOX_ACCESS_TOKEN" >> Examples/Secrets.xcconfig
echo "ABLY_API_KEY = $ASSET_TRACKING_TESTING_ABLY_API_KEY" >> Examples/Secrets.xcconfig
echo "AMPLIFY_CONFIGURATION" = $AMPLIFY_CONFIGURATION >> "Examples/PublisherExampleSwiftUI/Optional\ Resources/amplifyconfiguration.json"
env:
MAPBOX_ACCESS_TOKEN: ${{ secrets.ASSET_TRACKING_TESTING_MAPBOX_ACCESS_TOKEN }}
ABLY_API_KEY: ${{ secrets.ASSET_TRACKING_TESTING_ABLY_API_KEY }}
AMPLIFY_CONFIGURATION: ${{ secrets.AMPLIFY_CONFIGURATION }}

- name: Run Fastlane for the Publisher example app
- name: Configure Match Deploy key and Run Fastlane for the Publisher example app
working-directory: Examples/PublisherExampleSwiftUI
run: |
echo "$MATCH_DEPLOY_KEY" > deployKey
Expand All @@ -58,15 +60,12 @@ jobs:
ssh-keyscan github.com >> ~/.ssh/known_hosts
bundle exec fastlane build_and_upload_to_testflight
- name: Run Fastlane for the Subscriber example app
- name: Configure Match Deploy key and run Fastlane for the Subscriber example app
working-directory: Examples/SubscriberExample
run: |
echo "$MATCH_DEPLOY_KEY" > deployKey
eval "$(ssh-agent -s)"
chmod 400 deployKey
ssh-add deployKey
ssh-keyscan github.com >> ~/.ssh/known_hosts
bundle exec fastlane build_and_upload_to_testflight
bundle exec fastlane build_and_upload_to_testflight

0 comments on commit f56a9e1

Please sign in to comment.