Skip to content

Commit

Permalink
Merge pull request #33 from anvilco/iia/gcpAuth
Browse files Browse the repository at this point in the history
Add gcp auth step
  • Loading branch information
Inshaal93 authored Mar 25, 2024
2 parents 4e6636f + 90b9c19 commit 9a19696
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,19 @@ jobs:
runs-on: ubuntu-latest
env:
NODE_ENV: production
permissions:
contents: 'read'
id-token: 'write'
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- id: 'auth'
name: 'Authenticate to Google Cloud'
uses: 'google-github-actions/auth@v2'
with:
credentials_json: ${{ secrets.GCP_SA_KEY }}
- uses: google-github-actions/setup-gcloud@v2
with:
project_id: ${{ secrets.ETCH_DEMO_PROJECT }}
Expand Down

0 comments on commit 9a19696

Please sign in to comment.