Skip to content

Deploying to GCP: sha ${GITHUB_SHA} #4

Deploying to GCP: sha ${GITHUB_SHA}

Deploying to GCP: sha ${GITHUB_SHA} #4

Workflow file for this run

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: 'Install Sendgrid secret'

Check failure on line 25 in .github/workflows/deploy-gcp.yml

View workflow run for this annotation

GitHub Actions / Deploy to GCP

Invalid workflow file

The workflow is not valid. .github/workflows/deploy-gcp.yml (Line: 25, Col: 11): The identifier 'Install Sendgrid secret' is invalid. IDs may only contain alphanumeric characters, '_', and '-'. IDs must start with a letter or '_' and and must be less than 100 characters.
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: 'my-project'
workload_identity_provider: 'projects/766008139306/locations/global/workloadIdentityPools/github/providers/talmud-page-repo'
- id: 'deploy'
uses: 'google-github-actions/deploy-appengine@v2'