From 194ad8ee626e1aa9424015aac03ca20cdc7a20de Mon Sep 17 00:00:00 2001 From: Neill Robson Date: Thu, 6 Jun 2024 09:40:32 -0400 Subject: [PATCH] Add secret to env before file --- .github/workflows/lookaside.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/lookaside.yml b/.github/workflows/lookaside.yml index 6e2c745..4a5bd65 100644 --- a/.github/workflows/lookaside.yml +++ b/.github/workflows/lookaside.yml @@ -50,7 +50,9 @@ jobs: with: path: dist - name: Add service key - run: echo ${{ secrets.GCLOUD_SERVICE_KEY }} > "gcloud-service-key.json" + env: + GCLOUD_SERVICE_KEY: ${{ secrets.GCLOUD_SERVICE_KEY }} + run: echo "$GCLOUD_SERVICE_KEY" > "gcloud-service-key.json" - name: Deploy to Google Cloud Storage id: deployment run: node scripts/lookaside.mjs --keyFilename=gcloud-service-key.json --branch ${{ github.ref_name }}