-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (34 loc) · 931 Bytes
/
deploy-gcp.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Deploy to GCP
run-name: "Deploying to GCP"
on:
push:
branches: [base]
jobs:
gcp_deploy:
runs-on: ubuntu-latest
permissions:
contents: 'read'
id-token: 'write'
steps:
- uses: 'actions/checkout@v4'
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
cache-dependency-path: package-lock.json
- run: 'npm install --no-audit'
- id: configure-sendgrid
env:
SENDGRID_API_KEY: ${{ secrets.SENDGRID_API_KEY }}
run: 'echo ${SENDGRID_API_KEY} > sendgrid_api_key'
- id: 'build'
run: 'npm run parcel-prod'
- id: 'auth'
uses: 'google-github-actions/auth@v2'
with:
project_id: 'talmud'
credentials_json: '${{ secrets.GCP_DEPLOY_SERVICE_ACCOUNT }}'
- id: 'verify-auth'
run: 'gcloud auth list'
- id: 'deploy'
uses: 'google-github-actions/deploy-appengine@v2'