-
Notifications
You must be signed in to change notification settings - Fork 10
76 lines (61 loc) · 2.09 KB
/
single-input-ios-fastlane-debug.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
64
65
66
67
68
69
70
71
72
73
74
75
76
name: Single Input iOS Fastlane AdHoc
on:
workflow_dispatch:
inputs:
tramline-input:
required: false
jobs:
deploy:
runs-on: macos-14
steps:
- name: Configure Tramline
id: tramline
uses: tramlinehq/[email protected]
with:
input: ${{ github.event.inputs.tramline-input }}
- name: Debug ruby
run: ruby --version
- name: Debug cocoapods
run: gem info cocoapods
- name: Set up ruby env
uses: ruby/[email protected]
with:
ruby-version: 3.2.3
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.16.9'
channel: 'stable'
cache: true
- name: Get flutter dependencies
run: flutter pub get
- name: Debug ruby
run: ruby --version
- name: Debug cocoapods
run: gem info cocoapods
- name: Debug flutter
run: flutter doctor -v
- name: Build the app
run: |
flutter build ipa --debug --build-number=${{ steps.tramline.outputs.version_code }} --build-name=${{ steps.tramline.outputs.version_name }} --no-codesign --dart-define=BUGSNAG_API_KEY=${{ secrets.BUGSNAG_API_KEY }}
ls -la build/ios/archive
- name: Generate and sign the ipa
working-directory: ios
run: bundle install && bundle exec fastlane ios ad_hoc_build
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: ios/*.ipa