Skip to content

Commit

Permalink
Github actions setup
Browse files Browse the repository at this point in the history
  • Loading branch information
JakubJankowski committed Dec 5, 2022
1 parent 87de521 commit 33516ab
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 21 deletions.
35 changes: 17 additions & 18 deletions .github/workflows/testflight.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,25 @@ jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive

- name: Setup Bundler
run: |
bundle install
- name: Select Specific Xcode Version
run: |
sudo xcode-select -s /Applications/Xcode_13.4.1.app
echo "Selected Xcode version:"
xcodebuild -version
- name: Run Fastlane for the Subscriber example app
working-directory: Examples/SubscriberExample
run: |
bundle exec fastlane build_and_upload_to_testflight
- name: Configure Mapbox SDK download token
run: |
echo "machine api.mapbox.com" >> ~/.netrc
Expand All @@ -23,33 +36,19 @@ jobs:
env:
MAPBOX_DOWNLOADS_TOKEN: ${{ secrets.MAPBOX_DOWNLOADS_TOKEN }}

- name: Configure runtime secrets
- name: Configure runtime secrets and ENVs
env:
MAPBOX_ACCESS_TOKEN: ${{ secrets.EXAMPLE_APPS_MAPBOX_ACCESS_TOKEN }}
ABLY_API_KEY: ${{ secrets.EXAMPLE_APPS_ABLY_API_KEY }}
AMPLIFY_CONFIGURATION: ${{ secrets.AMPLIFY_CONFIGURATION }}
FASTLANE_APPLE_APPLICATION_SPECIFIC_PASSWORD: ${{ secrets.FASTLANE_APPLE_APPLICATION_SPECIFIC_PASSWORD }}
MATCH_GIT_URL: ${{ secrets.MATCH_GIT_URL }}
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
run: |
echo "MAPBOX_ACCESS_TOKEN = $EXAMPLE_APPS_MAPBOX_ACCESS_TOKEN" >> Examples/Secrets.xcconfig
echo "ABLY_API_KEY = $EXAMPLE_APPS_ABLY_API_KEY" >> Examples/Secrets.xcconfig
- name: Configure remaining runtime env
env:
FASTLANE_XCODE_LIST_TIMEOUT: 100
FASTLANE_XCODEBUILD_SETTINGS_RETRIES: 15

- name: Setup Bundler
run: |
bundle install
echo "MAPBOX_ACCESS_TOKEN = $EXAMPLE_APPS_MAPBOX_ACCESS_TOKEN" >> Examples/Secrets.xcconfig
echo "ABLY_API_KEY = $EXAMPLE_APPS_ABLY_API_KEY" >> Examples/Secrets.xcconfig
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Run Fastlane for the Subscriber example app
working-directory: ./Examples/SubscriberExample
run: |
bundle exec fastlane build_and_upload_to_testflight
6 changes: 3 additions & 3 deletions Examples/SubscriberExample/fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ default_platform(:ios)
update_project_team(
path: "SubscriberExample.xcodeproj",
teamid: "XXY98AVDR6")
update_build_number
#update_build_number
match(
git_url: ENV["MATCH_GIT_URL"],
git_url: "ENV["MATCH_GIT_URL"]",
app_identifier: "com.ably.tracking.example.subscriber",
type: "appstore",
git_basic_authorization: Base64.strict_encode64(ENV["GIT_AUTHORIZATION"]),
#git_basic_authorization: Base64.strict_encode64(ENV["GIT_AUTHORIZATION"]),
readonly: true)
build_app(scheme: "SubscriberExample",
project: "SubscriberExample.xcodeproj",
Expand Down

0 comments on commit 33516ab

Please sign in to comment.