add an apk to production build outputs for Obtanium release support (#4317)
* add an apk to production build outputs * test a build * Revert "test a build" This reverts commit f89bfeefb7e007b802cb47a8eca8fe6206bbf60f.zio/stable
parent
bd4703ca1e
commit
b02445883a
|
@ -120,6 +120,32 @@ jobs:
|
||||||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_CLIENT_ALERT_WEBHOOK }}
|
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_CLIENT_ALERT_WEBHOOK }}
|
||||||
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
|
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
|
||||||
|
|
||||||
|
- name: 🏗️ Build Production APK
|
||||||
|
if: ${{ inputs.profile == 'production' }}
|
||||||
|
run: yarn use-build-number-with-bump eas build -p android --profile production-apk --local --output build.apk --non-interactive
|
||||||
|
|
||||||
|
- name: 🚀 Upload Production APK Artifact
|
||||||
|
id: upload-artifact-production-apk
|
||||||
|
if: ${{ inputs.profile == 'production' }}
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
retention-days: 30
|
||||||
|
compression-level: 6
|
||||||
|
name: build-${{ steps.timestamp.outputs.time }}.apk
|
||||||
|
path: build.apk
|
||||||
|
|
||||||
|
- name: 🔔 Notify Slack of Production APK Build
|
||||||
|
if: ${{ inputs.profile == 'production' }}
|
||||||
|
uses: slackapi/slack-github-action@v1.25.0
|
||||||
|
with:
|
||||||
|
payload: |
|
||||||
|
{
|
||||||
|
"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 }}"
|
||||||
|
}
|
||||||
|
env:
|
||||||
|
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_CLIENT_ALERT_WEBHOOK }}
|
||||||
|
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
|
||||||
|
|
||||||
- name: ⬇️ Restore Cache
|
- name: ⬇️ Restore Cache
|
||||||
id: get-base-commit
|
id: get-base-commit
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
|
|
14
eas.json
14
eas.json
|
@ -46,6 +46,20 @@
|
||||||
"EXPO_PUBLIC_ENV": "production"
|
"EXPO_PUBLIC_ENV": "production"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"production-apk": {
|
||||||
|
"extends": "base",
|
||||||
|
"distribution": "internal",
|
||||||
|
"ios": {
|
||||||
|
"autoIncrement": false
|
||||||
|
},
|
||||||
|
"android": {
|
||||||
|
"autoIncrement": false
|
||||||
|
},
|
||||||
|
"channel": "production",
|
||||||
|
"env": {
|
||||||
|
"EXPO_PUBLIC_ENV": "production"
|
||||||
|
}
|
||||||
|
},
|
||||||
"testflight": {
|
"testflight": {
|
||||||
"extends": "base",
|
"extends": "base",
|
||||||
"ios": {
|
"ios": {
|
||||||
|
|
Loading…
Reference in New Issue