-
Notifications
You must be signed in to change notification settings - Fork 1
74 lines (60 loc) · 2.27 KB
/
mobile-build-on-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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
name: Release build/deploy native apps
on:
release:
types: [published]
env:
IONIC_TOKEN: ${{ secrets.IONIC_TOKEN }}
jobs:
build-android:
name: Build Android
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Ionic-Cloud
run: curl -fsSL https://ionic.io/get-ionic-cloud-cli | bash
- name: Trigger build Android
run: >
echo BUILDID=$(ionic-cloud build android release
--app-id=${{ secrets.IONIC_APP_ID }}
--signing-cert=AndroidProdCertificate
--env CURRENT_VERSION_ANDROID=${{ github.ref_name }}
--commit=${{ github.sha }} --apk --apk-name=ishihara-latest.apk --json | jq -r '.buildId') >> $GITHUB_ENV
- name:
run: gh auth login --with-token <<< ${{ secrets.TOKEN_UPDATE_SECRET }}
- name: gh set secret
run: gh secret set CURRENT_VERSION_ANDROID --body ${{ github.ref_name }}
- name: Trigger deploy Android Internal
run: >
ionic-cloud deploy android
--app-id=${{ secrets.IONIC_APP_ID }}
--build-id=${{ env.BUILDID }}
--destination="AndroidInternal"
build-ios:
name: Build iOS
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Ionic-Cloud
run: curl -fsSL https://ionic.io/get-ionic-cloud-cli | bash
- name: Trigger build iOS
run: >
echo BUILDID=$(ionic-cloud build ios app-store
--app-id=${{ secrets.IONIC_APP_ID }}
--native-config=Override_BundleId
--signing-cert=iOSProdCertificate
--env CURRENT_VERSION_IOS=${{ github.ref_name }}
--commit=${{ github.sha }} --json | jq -r '.buildId') >> $GITHUB_ENV
env:
IONIC_TOKEN: ${{ secrets.IONIC_TOKEN }}
- name:
run: gh auth login --with-token <<< ${{ secrets.TOKEN_UPDATE_SECRET }}
- name: gh set secret
run: gh secret set CURRENT_VERSION_IOS --body ${{ github.ref_name }}
- name: Trigger deploy iOS
run: >
ionic-cloud deploy ios
--app-id=${{ secrets.IONIC_APP_ID }}
--build-id=${{ env.BUILDID }}
--destination="TestFlight/App Store"