From e3be2bfbdef715c3178b0119fdf49f70255d51f0 Mon Sep 17 00:00:00 2001 From: Aleksandar Apostolov Date: Fri, 7 Jun 2024 13:59:54 +0200 Subject: [PATCH] Pbe 2776 video update the demo app on google play (#1108) --- .github/workflows/artifact-upload.yaml | 41 +++++++++++++++++++ .github/workflows/internal-app-distribute.yml | 11 +---- 2 files changed, 42 insertions(+), 10 deletions(-) create mode 100644 .github/workflows/artifact-upload.yaml diff --git a/.github/workflows/artifact-upload.yaml b/.github/workflows/artifact-upload.yaml new file mode 100644 index 0000000000..021bdca27a --- /dev/null +++ b/.github/workflows/artifact-upload.yaml @@ -0,0 +1,41 @@ +name: Build and Upload AAB + +on: + push: + branches: + - develop + workflow_dispatch: + +jobs: + build: + name: Build and Upload AAB + runs-on: ubuntu-22.04 + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up JDK 17 + uses: actions/setup-java@v2 + with: + distribution: adopt + java-version: 17 + + - name: Prepare environment + run: | + echo "${{ secrets.RELEASE_KEYSTORE }}" > .sign/release.keystore.asc + gpg -d --passphrase "${{ secrets.PASSPHRASE }}" --batch .sign/release.keystore.asc > .sign/release.keystore + echo "${{ secrets.RELEASE_KEYSTORE_PROPERTIES }}" > .sign/keystore.properties.asc + gpg -d --passphrase "${{ secrets.PASSPHRASE }}" --batch .sign/keystore.properties.asc > .sign/keystore.properties + echo "${{ secrets.SERVICE_ACCOUNT_CREDENTIALS }}" > .sign/service-account-credentials.json.asc + gpg -d --passphrase "${{ secrets.PASSPHRASE }}" --batch .sign/service-account-credentials.json.asc > .sign/service-account-credentials.json + echo "${{ secrets.ENV_PROPERTIES }}" > .env.properties + + - name: Build release bundle + run: ./gradlew bundleRelease --stacktrace + + - name: Upload AAB as artifact + uses: actions/upload-artifact@v2 + with: + name: app-bundle + path: app/build/outputs/bundle/release/*.aab diff --git a/.github/workflows/internal-app-distribute.yml b/.github/workflows/internal-app-distribute.yml index c9fc873cfb..5a7956a171 100644 --- a/.github/workflows/internal-app-distribute.yml +++ b/.github/workflows/internal-app-distribute.yml @@ -30,13 +30,4 @@ jobs: echo "${{ secrets.ENV_PROPERTIES }}" > .env.properties - name: Build release bundle - run: ./gradlew bundleRelease --stacktrace - - - name: Upload AAB as artifact - uses: actions/upload-artifact@v2 - with: - name: app-bundle - path: app/build/outputs/bundle/release/*.aab - - - name: Publish Bundle - run: bash ./gradlew publishBundle --stacktrace + run: ./gradlew bundleRelease --stacktrace \ No newline at end of file