-
Notifications
You must be signed in to change notification settings - Fork 3
54 lines (44 loc) · 1.18 KB
/
deploy-to-gh-pages.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
name: Deploy to GitHub Pages
on:
push:
branches:
- development
paths:
- 'tenant_frontend/**'
jobs:
build-and-deploy:
runs-on: ubuntu-latest
defaults:
run:
working-directory: tenant_frontend
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '14'
- name: Cache Node.js modules
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.OS }}-node-
${{ runner.OS }}-
- name: Update package-lock.json
run: |
rm -rf node_modules package-lock.json
npm install
- name: Install Dependencies
run: npm ci
- name: Build
run: npm run build
- name: List contents after build
run: ls -la
- name: Deploy to GitHub Pages
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: tenant_frontend/build
clean: true