-
Notifications
You must be signed in to change notification settings - Fork 15
50 lines (40 loc) · 1.08 KB
/
dev.yaml
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
name: Deploy to DEV
on:
workflow_dispatch:
push:
branches:
- dev
jobs:
build_and_deploy:
if: github.repository_owner == 'systemphil'
environment: dev
runs-on: ubuntu-latest
steps:
- name: Check if running in the parent repository
run: |
if [ "${GITHUB_REPOSITORY}" != "systemphil/sphil" ]; then
echo "This workflow is only intended for the parent repository. Skipping deployment."
exit 1
fi
- name: Checkout Code
uses: actions/checkout@v3
- name: Set Up Node.js
uses: actions/setup-node@v3
with:
node-version: 20
- name: 'Create env file'
run: |
echo "${{ secrets.ENV_FILE }}" > .env
- name: Install Dependencies
run: npm ci
- name: Build
run: npm run build
- name: Auth
uses: 'google-github-actions/auth@v2'
with:
credentials_json: '${{ secrets.GOOGLE_CREDENTIALS }}'
- name: Deploy
uses: 'google-github-actions/deploy-appengine@v2'
with:
working_directory: ./out
deliverables: app.yaml