+26
.github/workflows/build-submit-android.yml
+26
.github/workflows/build-submit-android.yml
···
120
120
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_CLIENT_ALERT_WEBHOOK }}
121
121
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
122
122
123
+
- name: 🏗️ Build Production APK
124
+
if: ${{ inputs.profile == 'production' }}
125
+
run: yarn use-build-number-with-bump eas build -p android --profile production-apk --local --output build.apk --non-interactive
126
+
127
+
- name: 🚀 Upload Production APK Artifact
128
+
id: upload-artifact-production-apk
129
+
if: ${{ inputs.profile == 'production' }}
130
+
uses: actions/upload-artifact@v4
131
+
with:
132
+
retention-days: 30
133
+
compression-level: 6
134
+
name: build-${{ steps.timestamp.outputs.time }}.apk
135
+
path: build.apk
136
+
137
+
- name: 🔔 Notify Slack of Production APK Build
138
+
if: ${{ inputs.profile == 'production' }}
139
+
uses: slackapi/slack-github-action@v1.25.0
140
+
with:
141
+
payload: |
142
+
{
143
+
"text": "Android production APK build is ready for download. This is a production build, and you should add it to the GitHub release! Download the artifact here: ${{ steps.upload-artifact-production-apk.outputs.artifact-url }}"
144
+
}
145
+
env:
146
+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_CLIENT_ALERT_WEBHOOK }}
147
+
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
148
+
123
149
- name: ⬇️ Restore Cache
124
150
id: get-base-commit
125
151
uses: actions/cache@v4
+14
eas.json
+14
eas.json
···
46
46
"EXPO_PUBLIC_ENV": "production"
47
47
}
48
48
},
49
+
"production-apk": {
50
+
"extends": "base",
51
+
"distribution": "internal",
52
+
"ios": {
53
+
"autoIncrement": false
54
+
},
55
+
"android": {
56
+
"autoIncrement": false
57
+
},
58
+
"channel": "production",
59
+
"env": {
60
+
"EXPO_PUBLIC_ENV": "production"
61
+
}
62
+
},
49
63
"testflight": {
50
64
"extends": "base",
51
65
"ios": {