Skip to content

Commit 2c20b54

Browse files
authored
ch(#31): app deployment ci (#37)
1 parent b065289 commit 2c20b54

File tree

4 files changed

+23522
-9
lines changed

4 files changed

+23522
-9
lines changed

Diff for: .github/workflows/publish.yml

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
on:
2+
push:
3+
branches:
4+
- publish
5+
6+
jobs:
7+
Publish:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: 🏗 Setup repo
11+
uses: actions/checkout@v4
12+
with:
13+
fetch-depth: 1
14+
15+
- name: 🏗 Setup Node
16+
uses: actions/setup-node@v4
17+
with:
18+
node-version: 20.x
19+
cache: npm
20+
21+
- name: 🏗 Setup EAS
22+
uses: expo/expo-github-action@v8
23+
with:
24+
eas-version: latest
25+
token: ${{ secrets.EXPO_TOKEN }}
26+
27+
- name: 📦 Install dependencies
28+
run: npm install
29+
30+
- name: 🚀 Build & Submit App
31+
run: eas build --platform $PLATFORM --profile $PROFILE --auto-submit --non-interactive
32+
env:
33+
PLATFORM: ${{ vars.BUILD_PLATFORM }}
34+
PROFILE: ${{ vars.BUILD_PROFILE }}
35+
36+
# This step will be deprecated and removed in the future once the google play account is created.
37+
- name: 🚀 Build Android App
38+
run: eas build --platform android --profile $PROFILE --non-interactive
39+
env:
40+
PROFILE: ${{ vars.BUILD_PROFILE }}

Diff for: .gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
# dependencies
55
/node_modules
6-
package-lock.json
76

87
# misc
98
.env

Diff for: eas.json

+10-8
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,27 @@
44
"appVersionSource": "remote"
55
},
66
"build": {
7-
"development": {
8-
"developmentClient": true,
9-
"distribution": "internal",
7+
"preview": {
8+
"autoIncrement": true,
9+
"distribution": "store",
1010
"android": {
1111
"buildType": "apk"
1212
}
1313
},
14-
"preview": {
15-
"distribution": "internal"
16-
},
1714
"production": {
1815
"autoIncrement": true,
16+
"distribution": "store",
1917
"android": {
2018
"buildType": "apk"
2119
}
2220
}
2321
},
2422
"submit": {
25-
"production": {},
26-
"preview": {}
23+
"preview": {
24+
"ios": {
25+
"ascAppId": "6670758891",
26+
"appleTeamId": "LAF47944D6"
27+
}
28+
}
2729
}
2830
}

0 commit comments

Comments
 (0)