-
Notifications
You must be signed in to change notification settings - Fork 6
97 lines (79 loc) · 2.81 KB
/
Copy pathdistribute-ios.yml
File metadata and controls
97 lines (79 loc) · 2.81 KB
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
91
92
93
94
95
96
97
name: iOS-Distribution
on:
# Triggers the workflow on push or pull request events but only for the develop branch
push:
branches: [release-beta]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build-ios:
runs-on: macos-12
strategy:
matrix:
node-version: [16.x]
steps:
- name: Checkout project
uses: actions/checkout@master
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install Ionic
run: npm install -g @ionic/cli
- name: Repair cache-files ownership
run: sudo chown -R 501:20 "/Users/runner/.npm"
- name: Run ionic build
run: |
npm install npm@8 -g
npm ci
ionic cap build ios --no-interactive --no-open --confirm --prod
- name: Bump version
run: |
cd ios/App
agvtool new-version -all ${{ github.run_number }}
- name: Specify XCode version
uses: maxim-lobanov/setup-xcode@master
with:
xcode-version: '^14.0'
- name: Run iOS build
uses: yukiarrr/ios-build-action@v1.5.0
with:
project-path: ./ios/App/App.xcodeproj
workspace-path: ./ios/App/App.xcworkspace
pods-path: ./ios/App/Podfile
p12-base64: ${{ secrets.IOS_DISTRIBUTION_P12 }}
certificate-password: ${{ secrets.IOS_DISTRIBUTION_PASSWORD }}
mobileprovision-base64: ${{ secrets.IOS_MOBILE_PROVISION }}
code-signing-identity: ${{ secrets.IOS_CODE_SIGNING_IDENTITY }}
team-id: ${{ secrets.IOS_TEAM_ID }}
export-method: 'ad-hoc'
- name: Archive build artifact
uses: actions/upload-artifact@master
with:
name: ipa-artifact
path: ./output.ipa
deploy-ios:
needs: [build-ios]
runs-on: ubuntu-latest
steps:
- name: Checkout project
uses: actions/checkout@master
- name: Download build artifact
uses: actions/download-artifact@master
with:
name: ipa-artifact
path: ./
- name: Decode application credentials to JSON file
uses: timheuer/base64-to-file@v1.1
id: decode-application-credentials
with:
fileName: 'application-credentials.json'
fileDir: './app_distribution/'
encodedString: ${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }}
- name: Deploy to Firebase
uses: wzieba/Firebase-Distribution-Github-Action@v1.3.4
with:
appId: ${{ secrets.FIREBASE_IOS_APP_ID }}
serviceCredentialsFile: ${{ steps.decode-application-credentials.outputs.filePath }}
groups: ${{ secrets.FIREBASE_INTERNAL_TEST_GROUP }}
file: output.ipa