From 02d69b3b1cdca1b14f6fc89e7db9815d526f5833 Mon Sep 17 00:00:00 2001 From: Neeraj Gupta <254676+ua741@users.noreply.github.com> Date: Fri, 13 Sep 2024 17:43:07 +0530 Subject: [PATCH] [auth] Add workflow for internal release --- .github/workflows/auth-internal-release.yml | 56 +++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 .github/workflows/auth-internal-release.yml diff --git a/.github/workflows/auth-internal-release.yml b/.github/workflows/auth-internal-release.yml new file mode 100644 index 0000000000..85e236808d --- /dev/null +++ b/.github/workflows/auth-internal-release.yml @@ -0,0 +1,56 @@ +name: "Internal release (auth mobile)" + +on: + workflow_dispatch: # Allow manually running the action + +env: + FLUTTER_VERSION: "3.24.1" + +jobs: + build: + runs-on: ubuntu-latest + + defaults: + run: + working-directory: auth + + steps: + - name: Checkout code and submodules + uses: actions/checkout@v4 + with: + submodules: recursive + + - name: Setup JDK 17 + uses: actions/setup-java@v1 + with: + java-version: 17 + + - name: Install Flutter ${{ env.FLUTTER_VERSION }} + uses: subosito/flutter-action@v2 + with: + channel: "stable" + flutter-version: ${{ env.FLUTTER_VERSION }} + cache: true + + - name: Setup keys + uses: timheuer/base64-to-file@v1 + with: + fileName: "keystore/ente_auth_key.jks" + encodedString: ${{ secrets.SIGNING_KEY_PHOTOS }} + + - name: Build PlayStore AAB + run: | + flutter build appbundle --release --flavor playstore --dart-define=app.flavor=playstore + env: + SIGNING_KEY_PATH: "/home/runner/work/_temp/keystore/ente_auth_key.jks" + SIGNING_KEY_ALIAS: ${{ secrets.SIGNING_KEY_ALIAS }} + SIGNING_KEY_PASSWORD: ${{ secrets.SIGNING_KEY_PASSWORD }} + SIGNING_STORE_PASSWORD: ${{ secrets.SIGNING_STORE_PASSWORD }} + + - name: Upload AAB to PlayStore + uses: r0adkll/upload-google-play@v1 + with: + serviceAccountJsonPlainText: ${{ secrets.SERVICE_ACCOUNT_JSON }} + packageName: io.ente.auth + releaseFiles: auth/build/app/outputs/bundle/playstoreRelease/app-playstore-release.aab + track: internal