-
Notifications
You must be signed in to change notification settings - Fork 22
39 lines (33 loc) · 911 Bytes
/
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
name: deploy gh-pages
on:
push:
branches:
- master
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
persist-credentials: false
- name: install node-v16
uses: actions/setup-node@v3
with:
node-version: '16.16.0'
- name: install dependencies
run: |
node -v
npm install -g pnpm
pnpm config set registry https://registry.npmjs.org/
pnpm install --registry=https://registry.npmjs.org/
- name: build project
run: |
npm run build:react
- name: deploy project
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: packages/react/build