From 1e26718937e6fe10ecd94342539a541909bd7d8c Mon Sep 17 00:00:00 2001 From: thisjustin123 Date: Thu, 3 Oct 2024 15:16:53 -0400 Subject: [PATCH] Replace service file with base64 encoded --- .github/workflows/publish-to-play-store-beta.yml | 6 ++++-- .github/workflows/publish-to-play-store.yml | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish-to-play-store-beta.yml b/.github/workflows/publish-to-play-store-beta.yml index 60bf39f..eca41df 100644 --- a/.github/workflows/publish-to-play-store-beta.yml +++ b/.github/workflows/publish-to-play-store-beta.yml @@ -25,8 +25,10 @@ jobs: run: | echo "${{ secrets.SECRETS_PROPERTIES }}" > secrets.properties - - name: Create google-services.json - run: echo "${{ secrets.GOOGLE_SERVICES_JSON }}" > app/google-services.json + - name: Load Google Service file + env: + DATA: ${{ secrets.GOOGLE_SERVICES_JSON }} + run: echo $DATA | base64 -di > app/google-services.json - name: Build with Gradle id: build diff --git a/.github/workflows/publish-to-play-store.yml b/.github/workflows/publish-to-play-store.yml index d36beee..ce8e2db 100644 --- a/.github/workflows/publish-to-play-store.yml +++ b/.github/workflows/publish-to-play-store.yml @@ -25,8 +25,10 @@ jobs: run: | echo "${{ secrets.SECRETS_PROPERTIES }}" > secrets.properties - - name: Create google-services.json - run: echo "${{ secrets.GOOGLE_SERVICES_JSON }}" > app/google-services.json + - name: Load Google Service file + env: + DATA: ${{ secrets.GOOGLE_SERVICES_JSON }} + run: echo $DATA | base64 -di > app/google-services.json - name: Build with Gradle id: build