mirror of
https://github.com/vide/matedroid.git
synced 2026-01-20 00:03:17 +08:00
ci: add Google Play Store publishing to release workflow
This commit is contained in:
19
.github/workflows/release.yml
vendored
19
.github/workflows/release.yml
vendored
@@ -49,6 +49,14 @@ jobs:
|
||||
KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }}
|
||||
run: ./gradlew assembleRelease
|
||||
|
||||
- name: Build Release AAB (for Play Store)
|
||||
env:
|
||||
KEYSTORE_BASE64: ${{ secrets.KEYSTORE_BASE64 }}
|
||||
KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
|
||||
KEY_ALIAS: ${{ secrets.KEYSTORE_ALIAS }}
|
||||
KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }}
|
||||
run: ./gradlew bundleRelease
|
||||
|
||||
- name: Build Debug APK
|
||||
run: ./gradlew assembleDebug
|
||||
|
||||
@@ -68,6 +76,17 @@ jobs:
|
||||
app/build/outputs/apk/release/${{ env.APK_NAME }}
|
||||
app/build/outputs/apk/debug/${{ env.APK_NAME_DEBUG }}
|
||||
|
||||
- name: Upload to Google Play
|
||||
if: github.event_name == 'release' && secrets.GOOGLE_PLAY_SERVICE_ACCOUNT_JSON != ''
|
||||
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: production
|
||||
status: completed
|
||||
changesNotSentForReview: false
|
||||
|
||||
- name: Upload APKs as artifacts
|
||||
if: github.event_name == 'workflow_dispatch'
|
||||
uses: actions/upload-artifact@v4
|
||||
|
||||
Reference in New Issue
Block a user