Merge pull request #251 from JHWelch/programming-by #208
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
name: Deploy to App Engine | |
on: | |
push: | |
branches: | |
- main | |
concurrency: | |
group: prod-deploy | |
cancel-in-progress: true | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
environment: production | |
permissions: | |
contents: read | |
id-token: write | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Place .env file | |
run: echo "${{ secrets.ENV_FILE }}" | base64 -d > .env | |
- name: Auth with Google | |
uses: google-github-actions/auth@v2 | |
with: | |
workload_identity_provider: ${{ secrets.GOOGLE_WORKFLOW_IDENTITY_PROVIDER }} | |
service_account: ${{ secrets.GOOGLE_SERVICE_ACCOUNT }} | |
- name: Deploy to Google | |
uses: google-github-actions/deploy-appengine@v2 | |
with: | |
deliverables: app.yaml cron.yaml |