Skip to content

Commit 047c6c4

Browse files
committed
Use fastlane match for signing in workflow
1 parent 23666f4 commit 047c6c4

2 files changed

Lines changed: 16 additions & 1 deletion

File tree

.github/workflows/publish_ios.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ jobs:
2626
with:
2727
cache: true
2828
flutter-version: 2.10.1
29+
- name: Setup SSH key
30+
env:
31+
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
32+
run: |
33+
ssh-agent -a $SSH_AUTH_SOCK > /dev/null
34+
ssh-add - <<< "${{ secrets.SSH_PRIVATE_KEY }}"
2935
- name: Pods cache
3036
uses: actions/cache@v2
3137
with:
@@ -50,4 +56,6 @@ jobs:
5056
- name: Publish to TestFlight with Fastlane
5157
env:
5258
APP_STORE_CONNECT_API_KEY_KEY: ${{ secrets.APP_STORE_CONNECT_API_KEY_KEY }}
59+
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
60+
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
5361
run: cd ios && bundle exec fastlane beta "build_name:${{ github.ref_name }}"

ios/fastlane/Fastfile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,14 @@ platform :ios do
1919
desc "Push a new beta build to TestFlight"
2020

2121
lane :beta do |options|
22+
setup_ci
23+
24+
sync_code_signing(
25+
type: "appstore",
26+
app_identifier: 'no.tjer.HelloWorld',
27+
readonly: true
28+
)
29+
2230
# We expose the key data using `APP_STORE_CONNECT_API_KEY_KEY` secret on GH
2331
app_store_connect_api_key(
2432
key_id: "YRQDJRKMR9",
@@ -41,7 +49,6 @@ platform :ios do
4149
build_app(
4250
workspace: "Runner.xcworkspace",
4351
scheme: "Runner",
44-
xcargs: "-allowProvisioningUpdates",
4552
output_directory: "../build/ios/archive"
4653
)
4754

0 commit comments

Comments
 (0)