diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a9687a58..65853e7f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -200,6 +200,26 @@ jobs: - name: Grant execute permission for gradlew run: chmod +x gradlew + # Here we need to decode keystore.jks from base64 string and place it + # in the folder specified in the release signing configuration + - name: Decode Keystore + id: decode_keystore + uses: timheuer/base64-to-file@v1.2 + with: + fileName: ${{ env.KEY_STORE_FILE }} + fileDir: ${{ env.KEY_STORE_LOCATION }} + encodedString: ${{ secrets.KEYSTORE }} + + # create keystore path for gradle to read + - name: Create keystore path env var + run: | + store_path=${{ env.KEY_STORE_LOCATION }}${{ env.KEY_STORE_FILE }} + echo "KEY_STORE_PATH=$store_path" >> $GITHUB_ENV + + - name: Create service_account.json + id: createServiceAccount + run: echo '${{ secrets.SERVICE_ACCOUNT_JSON }}' > service_account.json + - name: Deploy with fastlane uses: ruby/setup-ruby@v1 with: diff --git a/fastlane/Fastfile b/fastlane/Fastfile index bbab0302..829eb37e 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -4,25 +4,25 @@ platform :android do desc 'Deploy a new internal version to the Google Play Store' lane :internal do - gradle(task: "clean :app:bundleGeneralRelease") + gradle(task: "clean bundleGeneralRelease") upload_to_play_store(track: 'internal', skip_upload_apk: true) end desc "Deploy an alpha version to the Google Play" lane :alpha do - gradle(task: "clean :app:bundleGeneralRelease") + gradle(task: "clean bundleGeneralRelease") upload_to_play_store(track: 'alpha', skip_upload_apk: true) end desc "Deploy a beta version to the Google Play" lane :beta do - gradle(task: "clean :app:bundleGeneralRelease") + gradle(task: "clean bundleGeneralRelease") upload_to_play_store(track: 'beta', skip_upload_apk: true) end desc "Deploy a new version to the Google Play" lane :production do - gradle(task: "clean :app:bundleGeneralRelease") + gradle(task: "clean bundleGeneralRelease") upload_to_play_store(skip_upload_apk: true) end