-
Notifications
You must be signed in to change notification settings - Fork 10
63 lines (53 loc) · 1.84 KB
/
ios-fastlane-release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: iOS Fastlane Release
on:
workflow_dispatch:
inputs:
versionName:
description: 'User-facing release version name'
required: true
default: "1.0.0"
versionCode:
description: 'versionCode or build number'
required: true
default: '1'
jobs:
deploy:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Set up ruby env
uses: ruby/[email protected]
with:
ruby-version: 3.2.1
bundler-cache: true
- name: Decode signing certificate into a file
env:
CERTIFICATE_BASE64: ${{ secrets.BUILD_CERTIFICATE_BASE64 }}
run: |
echo $CERTIFICATE_BASE64 | base64 --decode > signing-cert.p12
- name: Setup the flutter environment
uses: subosito/flutter-action@v2
with:
flutter-version: '3.7.5'
channel: 'stable'
cache: true
- name: Get flutter dependencies
run: flutter pub get
- name: Build the app
run: |
flutter build ipa --release --build-number=${{ github.event.inputs.versionCode }} --build-name=${{ github.event.inputs.versionName }} --no-codesign --dart-define=SENTRY_DSN=${{ secrets.SENTRY_DSN }}
ls -la build/ios/archive
- name: Sign and ship the ipa
working-directory: ios
run: bundle install && bundle exec fastlane ios ship_to_testflight
env:
ASC_KEY_ID: ${{ secrets.APPSTORE_API_KEY_ID }}
ASC_ISSUER_ID: ${{ secrets.APPSTORE_ISSUER_ID }}
ASC_KEY: ${{ secrets.APPSTORE_API_PRIVATE_KEY }}
SIGNING_KEY_PASSWORD: ${{ secrets.P12_PASSWORD }}
SIGNING_KEY_FILE_PATH: ../signing-cert.p12
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: iOS IPA
path: build/ios/*.ipa