move to main #43
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 demo | |
# Means demo server is deployed automatically on direct pushes to this branch | |
on: | |
push: | |
branches: [ demo ] | |
jobs: | |
deploy-server: | |
permissions: | |
contents: 'read' | |
id-token: 'write' | |
runs-on: ubuntu-latest | |
environment: | |
name: demo | |
url: https://statycc.github.io/pymwp/demo | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Get Hash | |
run: echo "hash=$(git rev-parse --short "$GITHUB_SHA")" >> $GITHUB_ENV | |
- name: Authenticate | |
id: 'auth' | |
uses: 'google-github-actions/auth@v2' | |
with: | |
credentials_json: ${{ secrets.GCP_SA_KEY }} | |
- name: Deploy to App Engine | |
id: 'deploy' | |
uses: 'google-github-actions/deploy-appengine@v2' | |
with: | |
project_id: ${{ secrets.GCP_PROJECT }} | |
version: ${{ env.hash }} | |
deliverables: app.yaml |