Skip to content

Commit

Permalink
use appstore connect key for CI (#6294)
Browse files Browse the repository at this point in the history
* use appstore connect key for ci

* no bundle exec

* update fastlane via gem

* use bundle exec
  • Loading branch information
brunobar79 authored Dec 3, 2024
1 parent e30b444 commit eb485d6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/macstadium-builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ jobs:
xcodebuild -workspace ios/Rainbow.xcworkspace -scheme Rainbow -configuration Release -sdk iphonesimulator -derivedDataPath ios/build
APP_DIR=$(find . -name "*.app" | head -n 1)
cd $APP_DIR && zip -r ../../../../../../App.zip .
- name: Set up Appstore Key
run: |
cp ~/appstore/AuthKey_63N65C2G2S.p8 ios/fastlane/AuthKey_63N65C2G2S.p8
# TOPHAT iOS DEVICE
- name: Build the app in release mode for iOS devices
Expand All @@ -85,7 +88,7 @@ jobs:
FASTLANE_PASSWORD: ${{ secrets.FASTLANE_PASSWORD }}
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
run: |
cd ios && bundle update fastlane && bundle exec fastlane ios build_device
cd ios && gem update fastlane && bundle exec fastlane ios build_device
- name: Upload builds to AWS S3
env:
AWS_BUCKET: rainbow-app-team-production
Expand Down
8 changes: 8 additions & 0 deletions ios/fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,14 @@ platform :ios do
desc "Create new build for iOS devices in release mode"
lane :build_device do

api_key = app_store_connect_api_key(
key_id: "63N65C2G2S",
issuer_id: "95830311-9e99-47b0-95ac-d628a3e4215e",
key_filepath: "fastlane/AuthKey_63N65C2G2S.p8",
duration: 1200, # optional
in_house: false, # optional but may be required if using match/sigh
)

update_info_plist(
plist_path: "Rainbow/Info.plist",
display_name: "Rainbow"
Expand Down

0 comments on commit eb485d6

Please sign in to comment.