Skip to content

Commit

Permalink
Add secret to env before file
Browse files Browse the repository at this point in the history
  • Loading branch information
neillrobson committed Jun 6, 2024
1 parent 6742f21 commit 194ad8e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/lookaside.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit 194ad8e

Please sign in to comment.