Skip to content

Commit

Permalink
Deploy automatically when committing to the base branch
Browse files Browse the repository at this point in the history
  • Loading branch information
ronshapiro committed Oct 13, 2024
1 parent 213bd2e commit 6eee24d
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/deploy-gcp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Deploy to GCP
run-name: "Deploying to GCP: sha ${GITHUB_SHA}"
on:
push:
branches: [base]
jobs:
gcp_deploy:
# Add "id-token" with the intended permissions.
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

- id: 'build'
run: 'npm run parcel-prod'

- id: 'auth'
uses: 'google-github-actions/auth@v2'
with:
project_id: 'my-project'
workload_identity_provider: 'projects/766008139306/locations/global/workloadIdentityPools/github/providers/talmud-page-repo'

- id: 'deploy'
uses: 'google-github-actions/deploy-appengine@v2'

0 comments on commit 6eee24d

Please sign in to comment.