Publish to Google Cloud #75
Workflow file for this run
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: Publish to Google Cloud | |
on: | |
workflow_dispatch: | |
jobs: | |
Deploy_to_GAE: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v2 | |
- name: Setup Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 16 | |
- name: Install Dependencies | |
run: npm install | |
- name: Build Node.js Project | |
run: npm run build | |
- name: Setup Google Cloud SDK | |
uses: google-github-actions/setup-gcloud@v0.2.0 | |
with: | |
project_id: ${{secrets.GCP_PROJECT}} | |
service_account_key: ${{secrets.GCP_CREDENTIALS}} | |
- name: Deploy to Google App Engine | |
uses: google-github-actions/deploy-appengine@v0.2.0 | |
with: | |
deliverables: app.yaml | |
project_id: ${{ secrets.GCP_PROJECT }} | |
credentials: ${{ secrets.GCP_SA_KEY }} | |
promote: true | |
version: v1 |