-
Notifications
You must be signed in to change notification settings - Fork 34
59 lines (57 loc) · 1.81 KB
/
ios_beta_release.yaml
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
name: iOS Beta Release
on:
push:
tags:
- 'iOS-[0-9]+.[0-9]+.[0-9]+'
jobs:
deploy:
name: Deploy to Testflight
runs-on: macOS-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: 11
- uses: eskatos/gradle-command-action@v1
with:
gradle-version: 6.3-rc-1
- uses: sinoru/[email protected]
with:
xcode-version: '11.4'
apple-id: ${{ secrets.APPLEID_USERNAME }}
apple-id-password: ${{ secrets.APPLEID_PASSWORD }}
- name: Update version
run: |
latest_beta="$(git describe --match "iOS*" --abbrev=0 --tags)"
version=${latest_beta#"iOS-"}
cd native/KotlinIOS
xcrun agvtool new-marketing-version $version
xcrun agvtool next-version -all
- name: Install cocoapods
run: |
cd native/KotlinIOS
sudo gem install cocoapods
sudo bundle install
- name: Install pods
run: |
cd native/KotlinIOS
bundle exec pod install
- name: Install gpg
run: brew install gnupg
- name: Setup provisioning profile
env:
IOS_KEYS: ${{ secrets.IOS_KEYS }}
run: ./.github/secrets/decrypt_secrets.sh
- name: Archive project
env:
PR_NUMBER: $(jq --raw-output .pull_request.number "$GITHUB_EVENT_PATH")
run: ./.github/scripts/archive_app.sh
- name: Export .ipa
run: ./.github/scripts/export_ipa.sh
- name: Publish app to TestFlight
if: success()
env:
APPLEID_USERNAME: ${{ secrets.APPLEID_USERNAME }}
APPLEID_PASSWORD: ${{ secrets.APPLEID_PASSWORD }}
run: ./.github/scripts/publish_testflight.sh