Skip to content

Commit

Permalink
fix: use connect api
Browse files Browse the repository at this point in the history
  • Loading branch information
maxkrieger committed Jul 28, 2022
1 parent 8c7a714 commit 9ec92e6
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/prerelease_ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ jobs:
run: |
flutter build ios --release --no-codesign --dart-define=SENTRY_DSN=${{ secrets.SENTRY_DSN }}
- name: Dump Secrets
run: |
cd ios/
echo "${{secrets.CONNECT_KEY}}" > ci.p8
- name: Deploy to TestFlight
run: |
cd ./ios && bundle exec fastlane beta_ci
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ flutter pub run flutter_launcher_icons:main
```

| Env Var | Value |
| -------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|----------------------------------------------| ------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| APPLE_ID | apple account email" |
| APP_IDENTIFIER | ios com.blabla.blabla |
| PLAY_APP_IDENTIFIER | android com.blablabla.bla |
Expand All @@ -53,7 +53,7 @@ flutter pub run flutter_launcher_icons:main
| FASTLANE_APPLE_APPLICATION_SPECIFIC_PASSWORD | app specific password for fastlane |
| FASTLANE_USER | documented in fastlane |
| FASTLANE_PASSWORD | documented in fastlane |
| FASTLANE_SESSION | documented in fastlane |
| CONNECT_KEY | app store connect .p8 file contents |
| GOOGLE_PLAY_JSON_CONTENT | base64 encoded json keys for google play fastlane |
| KEYSTORE | base64 encoded keystore.jks |
| KEY_PROPERTIES | key.properties seen above |
Expand Down
10 changes: 9 additions & 1 deletion ios/fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,15 @@ platform :ios do
)

build_app(workspace: "Runner.xcworkspace", scheme: "Runner")
upload_to_testflight(skip_waiting_for_build_processing: true)
api_key = app_store_connect_api_key(
key_id: "DSZ32H33CL",
issuer_id: "fb8accf3-4375-49f8-9bd0-449e0ef34160",
key_filepath: "./ci.p8",
# duration: 1200, # optional (maximum 1200)
# in_house: false # optional but may be required if using match/sigh
)

upload_to_testflight(skip_waiting_for_build_processing: true, api_key: api_key)
end

desc "Push a new beta build to TestFlight on CI"
Expand Down

0 comments on commit 9ec92e6

Please sign in to comment.