Skip to content

Commit

Permalink
Merge pull request #3 from guivaloz:guivaloz/github-workflow
Browse files Browse the repository at this point in the history
GitHub Workflow
  • Loading branch information
guivaloz authored Jan 8, 2024
2 parents 83428c3 + eeb2ee8 commit edf8671
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/gcloud-app-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Google Cloud App Engine deploy

on:
push:
branches: ["main"]

jobs:
production-deploy:
if: github.repository == 'PJECZ/pjecz-perseo-api-key'
runs-on: ubuntu-latest
permissions:
contents: "read"
id-token: "write"
steps:
- uses: "actions/checkout@v3"
- name: "authenticate"
uses: "google-github-actions/auth@v1"
with:
workload_identity_provider: ${{ secrets.GCP_WORKLOAD_IDENTITY_PROVIDER }}
service_account: ${{ secrets.GCP_SA_KEY }}
- name: "deploy"
uses: "google-github-actions/deploy-appengine@v1"
with:
project_id: ${{ secrets.GCP_PROJECT_ID }}
deliverables: "app.yaml"
working_directory: "."
promote: true

0 comments on commit edf8671

Please sign in to comment.