forked from hoangnguyen92dn/survey-flutter-ic
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (37 loc) · 1.25 KB
/
ios_deploy_production.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
name: iOS - Deploy Production build to TestFlight
on:
# Trigger the workflow on push action
push:
branches:
- 'release/**'
jobs:
build_and_upload_to_testflight:
name: Build And Upload iOS Application To TestFlight
runs-on: macOS-latest
env:
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
APPSTORE_CONNECT_API_KEY: ${{ secrets.APPSTORE_CONNECT_API_KEY }}
steps:
- uses: actions/checkout@v1
- name: Install SSH key
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: Setup Flutter environment
uses: subosito/flutter-action@v2
with:
channel: 'stable'
flutter-version: '3.7.7'
- name: Get flutter dependencies
run: flutter pub get
- name: Run code generator
run: flutter packages pub run build_runner build --delete-conflicting-outputs
- name: Bundle install
run: cd ./ios && bundle install
- name: Pod install
run: cd ./ios && bundle exec pod install
- name: Match AppStore
run: cd ./ios && bundle exec fastlane sync_appstore_production_signing
- name: Deploy to TestFlight
run: |
cd ./ios && bundle exec fastlane build_and_upload_testflight_production_app