From acc5d36d173818137554b00dc4d3a1af7be7894b Mon Sep 17 00:00:00 2001 From: Myzel394 <50424412+Myzel394@users.noreply.github.com> Date: Wed, 15 May 2024 19:31:40 +0200 Subject: [PATCH] feat(ci-cd): Add release app to Google Play ci:cd --- .../workflows/release-app-google-play.yaml | 43 +++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/release-app-google-play.yaml diff --git a/.github/workflows/release-app-google-play.yaml b/.github/workflows/release-app-google-play.yaml new file mode 100644 index 00000000..a941fef6 --- /dev/null +++ b/.github/workflows/release-app-google-play.yaml @@ -0,0 +1,43 @@ +name: Build and publish app to Google Play + +on: + release: + types: [ published ] + +jobs: + release-app-google-play: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - uses: gradle/wrapper-validation-action@v2 + + - name: Write KeyStore 🗝️ + uses: ./.github/actions/prepare-keystore + with: + signingStorePassword: ${{ secrets.SIGNING_STORE_PASSWORD }} + signingKeyPassword: ${{ secrets.SIGNING_KEY_PASSWORD }} + signingKeyAlias: ${{ secrets.SIGNING_KEY_ALIAS }} + keyStoreBase64: ${{ secrets.KEYSTORE }} + + - name: Setup Java + uses: actions/setup-java@v4 + with: + distribution: 'adopt' + java-version: 21 + cache: 'gradle' + + - name: Build Bundles 📱 + run: ./gradlew bundleRelease + + - name: Upload Bundles 🚀 + uses: r0adkll/upload-google-play@v1 + with: + serviceAccountJsonPlainText: ${{ secrets.GOOGLE_PLAY_STORE_SERVICE_ACCOUNT }} + packageName: app.myzel394.numberhub + releaseFiles: app/build/outputs/bundle/release/app-release.aab + track: production + status: inProgress + userFraction: 0.5