mirror of
https://github.com/vide/matedroid.git
synced 2026-01-20 00:03:17 +08:00
ci: split Play Store upload into internal and production tracks
- Internal testing track: always uploads when secrets are configured - Production track: only uploads when PLAY_STORE_PRODUCTION_ENABLED var is 'true' Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
15
.github/workflows/release.yml
vendored
15
.github/workflows/release.yml
vendored
@@ -76,18 +76,29 @@ jobs:
|
|||||||
app/build/outputs/apk/release/${{ env.APK_NAME }}
|
app/build/outputs/apk/release/${{ env.APK_NAME }}
|
||||||
app/build/outputs/apk/debug/${{ env.APK_NAME_DEBUG }}
|
app/build/outputs/apk/debug/${{ env.APK_NAME_DEBUG }}
|
||||||
|
|
||||||
- name: Upload to Google Play
|
- name: Upload to Google Play (Internal Testing)
|
||||||
if: github.event_name == 'release' && env.GOOGLE_PLAY_SERVICE_ACCOUNT_JSON != ''
|
if: github.event_name == 'release' && env.GOOGLE_PLAY_SERVICE_ACCOUNT_JSON != ''
|
||||||
env:
|
env:
|
||||||
GOOGLE_PLAY_SERVICE_ACCOUNT_JSON: ${{ secrets.GOOGLE_PLAY_SERVICE_ACCOUNT_JSON }}
|
GOOGLE_PLAY_SERVICE_ACCOUNT_JSON: ${{ secrets.GOOGLE_PLAY_SERVICE_ACCOUNT_JSON }}
|
||||||
uses: r0adkll/upload-google-play@v1
|
uses: r0adkll/upload-google-play@v1
|
||||||
|
with:
|
||||||
|
serviceAccountJsonPlainText: ${{ secrets.GOOGLE_PLAY_SERVICE_ACCOUNT_JSON }}
|
||||||
|
packageName: com.matedroid
|
||||||
|
releaseFiles: app/build/outputs/bundle/release/app-release.aab
|
||||||
|
track: internal
|
||||||
|
status: completed
|
||||||
|
|
||||||
|
- name: Upload to Google Play (Production)
|
||||||
|
if: github.event_name == 'release' && env.GOOGLE_PLAY_SERVICE_ACCOUNT_JSON != '' && vars.PLAY_STORE_PRODUCTION_ENABLED == 'true'
|
||||||
|
env:
|
||||||
|
GOOGLE_PLAY_SERVICE_ACCOUNT_JSON: ${{ secrets.GOOGLE_PLAY_SERVICE_ACCOUNT_JSON }}
|
||||||
|
uses: r0adkll/upload-google-play@v1
|
||||||
with:
|
with:
|
||||||
serviceAccountJsonPlainText: ${{ secrets.GOOGLE_PLAY_SERVICE_ACCOUNT_JSON }}
|
serviceAccountJsonPlainText: ${{ secrets.GOOGLE_PLAY_SERVICE_ACCOUNT_JSON }}
|
||||||
packageName: com.matedroid
|
packageName: com.matedroid
|
||||||
releaseFiles: app/build/outputs/bundle/release/app-release.aab
|
releaseFiles: app/build/outputs/bundle/release/app-release.aab
|
||||||
track: production
|
track: production
|
||||||
status: completed
|
status: completed
|
||||||
changesNotSentForReview: false
|
|
||||||
|
|
||||||
- name: Upload APKs and AAB as artifacts
|
- name: Upload APKs and AAB as artifacts
|
||||||
if: github.event_name == 'workflow_dispatch'
|
if: github.event_name == 'workflow_dispatch'
|
||||||
|
|||||||
Reference in New Issue
Block a user