-
Notifications
You must be signed in to change notification settings - Fork 2
45 lines (39 loc) · 1021 Bytes
/
deploy-client.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
name: deploy-client
on:
workflow_run:
workflows: [CI-TEST]
types: [completed]
branches: [main]
push:
branches:
- main
paths:
- "packages/client/**"
jobs:
deploy:
runs-on: ubuntu-latest
env:
CI: false
PUBLIC_URL: "/lasso"
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Cache node_modules
uses: actions/cache@v3
with:
path: "**/node_modules"
key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }}
- name: Fix node version
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install
run: npm install
- name: Build
run: npm run build
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages # The branch the action should deploy to.
folder: packages/client/build # The folder the action should deploy.
clean-exclude: /data