-
Notifications
You must be signed in to change notification settings - Fork 38
90 lines (73 loc) · 2.81 KB
/
ci_ios.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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
name: Automated-CI-iOS-Beta
# fixme(2024-3-7): this CI action does not inject GIT_HASH into the build command, so it should not be used for releases.
on:
workflow_dispatch:
jobs:
Automated-CI-iOS:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Use Latest Xcode
uses: devbotsxyz/[email protected]
with:
version: 14.1
beta: false
- name: Install Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: '3.3.8'
channel: 'stable'
- name: Prepare Flutter Dependencies
run: |
flutter pub get
flutter pub global activate intl_utils
flutter pub global run intl_utils:generate
- name: Bump Build Number
run: |
flutter pub global activate cider
flutter pub global run cider bump build
- name: Generate Models
run: dart run build_runner build --delete-conflicting-outputs
- name: Get Flutter Version
id: get_flutter_version
uses: its404/[email protected]
- name: Update Xcode Build Number
uses: yanamura/ios-bump-version@v1
with:
version: ${{ steps.get_flutter_version.outputs.version_number }}
build-number: ${{ steps.get_flutter_version.outputs.build_number }}
project-path: ios
- name: Commit Build Number Update
run: |
git add .
git commit -m "[GitHub Action] Bump Build Number"
- name: Push Build Number Update
run: git push origin
- name: Import Keys
run: |
echo -n "${{ secrets.MATCH_SSH_KEY_BASE64 }}" | base64 -d -o $HOME/.ssh/id_rsa
chmod 400 $HOME/.ssh/id_rsa
export MATCH_GIT_PRIVATE_KEY=$HOME/.ssh/id_rsa
- name: Import Secrets
uses: actions/checkout@v2
with:
repository: DanXi-Dev/DanXi-secrets
path: secrets
ssh-key: ${{ secrets.SECRETS_SSH_KEY }}
- name: Populate Secrets
run: |
mv -f secrets/sksl_default.json CI/sksl_default.json
- name: Configure Xcode
run: flutter build ios --release --config-only # --bundle-sksl-path CI/sksl_default.json
- name: Build and Upload via Fastlane
uses: maierj/[email protected]
with:
lane: 'beta'
subdirectory: 'ios'
skip-tracking: true
env:
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
APP_STORE_CONNECT_API_KEY_ISSUER_ID: ${{ secrets.APP_STORE_CONNECT_API_KEY_ISSUER_ID }}
APP_STORE_CONNECT_API_KEY_KEY: ${{ secrets.APP_STORE_CONNECT_API_KEY_KEY }}
APP_STORE_CONNECT_API_KEY_KEY_ID: ${{ secrets.APP_STORE_CONNECT_API_KEY_KEY_ID }}