From 6248fe75254c841f91881a26bde1972e5698d861 Mon Sep 17 00:00:00 2001 From: Kevin Berridge Date: Wed, 24 Jan 2024 23:19:36 -0500 Subject: [PATCH] deploy: ok, let's try the google auth action --- .github/workflows/deploy.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 80757a5..33c9914 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -14,8 +14,6 @@ jobs: deploy: name: Deploy to Firebase runs-on: ubuntu-latest - env: - GOOGLE_APPLICATION_CREDENTIALS: google-application-credentials.json steps: - name: Checkout uses: actions/checkout@v4 @@ -23,10 +21,10 @@ jobs: uses: actions/setup-node@v4 with: node-version: '20' - - name: Prepare Google Application Credentials - shell: bash - run: | - echo "${{ secrets.FIREBASE_SERVICE_ACCOUNT_KWBLOG_1C958 }}" | base64 --decode > "google-application-credentials.json" + - name: Authenticate to Google Cloud + uses: google-github-actions/auth@v0.4.0 + with: + credentials_json: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_KWBLOG_1C958 }}' - name: Deploy shell: pwsh run: |