Skip to content

Instantly share code, notes, and snippets.

@baharalidurrani
Created December 20, 2021 20:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save baharalidurrani/1af42b29f809f0cafeabf47672f8e590 to your computer and use it in GitHub Desktop.
Save baharalidurrani/1af42b29f809f0cafeabf47672f8e590 to your computer and use it in GitHub Desktop.
Deploy a Typescript app to GCP App Engine Using GitHub Action
# Using https://github.com/google-github-actions/deploy-appengine
# The following example service account permissions could be required for a Typescript project.
# *****
# App Engine Admin
# Cloud Build Editor
# Compute Admin
# Service Account User
# Storage Admin
# *****
name: App Engine Deploy
# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the development branch
push:
branches: [master]
# Allows you to run this workflow manually from the Actions tab
# workflow_dispatch:
jobs:
app-deploy:
# needs: build # Job defined in another file.
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- id: "auth"
uses: "google-github-actions/auth@v0"
with:
credentials_json: "${{ secrets.GCP_SA_KEY }}"
- id: "deploy"
uses: "google-github-actions/deploy-appengine@v0.5.0"
- id: "test"
run: 'curl "${{ steps.deploy.outputs.url }}"'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment