forked from google/blockly
-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (46 loc) · 1.46 KB
/
appengine_deploy.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# Workflow that prepares files and deploys to appengine
name: Deploy to App Engine
# Controls when the workflow will run
on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
prepare:
name: Prepare
runs-on: ubuntu-latest
steps:
# Checks-out the repository under $GITHUB_WORKSPACE.
# When running manually this checks out the master branch.
- uses: actions/checkout@v3
- name: Prepare demo files
# Install all dependencies, then copy all the files needed for demos.
run: |
npm install
npm run prepareDemos
- name: Upload
uses: actions/upload-artifact@v3
with:
name: appengine_files
path: _deploy/
deploy:
name: Deploy
runs-on: ubuntu-latest
# The prepare step must succeed for this step to run.
needs: prepare
steps:
- name: Download prepared files
uses: actions/download-artifact@v3
with:
name: appengine_files
path: _deploy/
- name: Deploy to App Engine
uses: google-github-actions/[email protected]
# For parameters see:
# https://github.com/google-github-actions/deploy-appengine#inputs
with:
working_directory: _deploy/
deliverables: app.yaml
project_id: ${{ secrets.GCP_PROJECT }}
credentials: ${{ secrets.GCP_SA_KEY }}
promote: false
version: vtest