fix(ci-cd): Improve releasing

This commit is contained in:
Myzel394 2024-05-15 21:00:34 +02:00
parent acc5d36d17
commit 2f1d3a3084
No known key found for this signature in database
GPG Key ID: DEC4AAB876F73185
2 changed files with 6 additions and 3 deletions

View File

@ -1,4 +1,4 @@
name: Build and publish app name: Build and publish app (F-Droid variant)
on: on:
release: release:

View File

@ -1,4 +1,4 @@
name: Build and publish app to Google Play name: Build and publish app to Google Play (Google Play variant)
on: on:
release: release:
@ -32,12 +32,15 @@ jobs:
- name: Build Bundles 📱 - name: Build Bundles 📱
run: ./gradlew bundleRelease run: ./gradlew bundleRelease
- name: Rename APK
run: mv app/build/outputs/bundle/playStoreRelease/app-playStore-release.aab NumberHub.aab
- name: Upload Bundles 🚀 - name: Upload Bundles 🚀
uses: r0adkll/upload-google-play@v1 uses: r0adkll/upload-google-play@v1
with: with:
serviceAccountJsonPlainText: ${{ secrets.GOOGLE_PLAY_STORE_SERVICE_ACCOUNT }} serviceAccountJsonPlainText: ${{ secrets.GOOGLE_PLAY_STORE_SERVICE_ACCOUNT }}
packageName: app.myzel394.numberhub packageName: app.myzel394.numberhub
releaseFiles: app/build/outputs/bundle/release/app-release.aab releaseFiles: NumberHub.aab
track: production track: production
status: inProgress status: inProgress
userFraction: 0.5 userFraction: 0.5