Last active
April 21, 2022 06:51
-
-
Save Farhandroid/f566c4c17884dcddbd947e45fd3cf35c to your computer and use it in GitHub Desktop.
This file contains hidden or 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: 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