-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (30 loc) · 921 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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