Skip to content

Update main.yml

Update main.yml #3

Workflow file for this run

name: 'Deploy to Cloud Run from Source'
on:
push:
branches: [master]
env:
PROJECT_ID: ${{ vars.PROJECT_ID }}
REGION: 'us-east1' # TODO: update to your region
jobs:
deploy:
runs-on: 'ubuntu-latest'
steps:

Check failure on line 15 in .github/workflows/main.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/main.yml

Invalid workflow file

You have an error in your yaml syntax on line 15
- name: 'Checkout'
uses: 'actions/checkout@v4
- id: 'auth'
name: 'Authenticate to Google Cloud'
uses: 'google-github-actions/auth@v2'
with:
workload_identity_provider: 'projects/${{ secrets.PROJECT_ID }}/locations/global/workloadIdentityPools/github-actions-pool/providers/github-actions-oidc'
- name: 'Deploy to Cloud Run'
run: |
gcloud run jobs deploy fantasy-football-chat-bot \
--source . \
--region us-east1
--project ${{ secrets.PROJECT_ID }}
# If required, use the Cloud Run URL output in later steps
- name: 'Show output'
run: |-
echo ${{ steps.deploy.outputs.url }}