Update README.md #5
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
# .github/workflows/prod.yml | |
name: Deploy to PROD | |
on: | |
push: | |
branches: | |
- main | |
env: | |
PROJECT_ID: ${{ secrets.GCP_PROD_PROJECT_ID }} | |
RUN_REGION: us-east1 | |
SA_KEY_JSON: ${{ secrets.GCP_PROD_SA_KEY_JSON }} | |
jobs: | |
deploy: | |
name: Deploy to PROD | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
# Setup gcloud CLI | |
- uses: google-github-actions/setup-gcloud@master | |
with: | |
project_id: ${{ secrets.GCP_PROD_PROJECT_ID }} | |
service_account_key: ${{ secrets.GCP_PROD_SA_KEY_JSON }} | |
export_default_credentials: true | |
- name: Use gcloud CLI to deploy to PROD | |
run: gcloud app deploy --quiet | |
- name: Use gcloud CLI to deploy cron jobs to PROD | |
run: gcloud app deploy cron.yaml --quiet |