-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deploy automatically when committing to the base branch
- Loading branch information
1 parent
213bd2e
commit f8f07ee
Showing
1 changed file
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Deploy to GCP | ||
run-name: "Deploying to GCP: sha ${GITHUB_SHA}" | ||
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' | ||
|
||
- 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' | ||
workload_identity_provider: 'projects/766008139306/locations/global/workloadIdentityPools/github/providers/talmud-page-repo' | ||
service_account: "[email protected]" | ||
|
||
- id: 'deploy' | ||
uses: 'google-github-actions/deploy-appengine@v2' |