Skip to content

Instantly share code, notes, and snippets.

@Farhandroid
Last active April 21, 2022 06:51
Show Gist options
  • Save Farhandroid/f566c4c17884dcddbd947e45fd3cf35c to your computer and use it in GitHub Desktop.
Save Farhandroid/f566c4c17884dcddbd947e45fd3cf35c to your computer and use it in GitHub Desktop.
name: gae-ci-cd
on:
push:
branches: [main]
jobs:
deploy:
if: github.ref == 'refs/heads/main'
name: deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
#Checking if the app build successfully
- name: npm install
run: npm install && npm run build
- name: Deploy an App Engine app
id: deploy-app
uses: google-github-actions/[email protected]
with:
project_id: ${{ secrets.PROJECT_ID }}
deliverables: app.yaml
credentials: ${{ secrets.GCP_SA_KEY}}
version: v1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment