From aa0602bea5807629ec35d5924353af547930235a Mon Sep 17 00:00:00 2001 From: Mahmudul Hasan Shohag Date: Thu, 29 Jun 2023 09:48:33 +0600 Subject: [PATCH] Add local properties to GH actions --- .github/workflows/build-beta-upload-android.yml | 5 +++++ .github/workflows/build-production-upload-android.yml | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/.github/workflows/build-beta-upload-android.yml b/.github/workflows/build-beta-upload-android.yml index f30c0bc..65be27d 100644 --- a/.github/workflows/build-beta-upload-android.yml +++ b/.github/workflows/build-beta-upload-android.yml @@ -19,6 +19,11 @@ jobs: ruby-version: 3.2.2 bundler-cache: true + - name: Initialize local properties + env: + API_KEY: ${{ secrets.MAPS_API_KEY }} + run: echo MAPS_API_KEY="$MAPS_API_KEY" > ./local.properties ; echo CMS_API_KEY="$CMS_API_KEY" > ./local.properties + # Set up your GitHub Actions workflow with a specific version of Java - name: Setup Java JDK uses: actions/setup-java@v3 diff --git a/.github/workflows/build-production-upload-android.yml b/.github/workflows/build-production-upload-android.yml index 2d9a19b..1282719 100644 --- a/.github/workflows/build-production-upload-android.yml +++ b/.github/workflows/build-production-upload-android.yml @@ -16,6 +16,11 @@ jobs: ruby-version: 3.2.2 bundler-cache: true + - name: Initialize local properties + env: + API_KEY: ${{ secrets.MAPS_API_KEY }} + run: echo MAPS_API_KEY="$MAPS_API_KEY" > ./local.properties ; echo CMS_API_KEY="$CMS_API_KEY" > ./local.properties + # Set up your GitHub Actions workflow with a specific version of Java - name: Setup Java JDK uses: actions/setup-java@v3