-
Notifications
You must be signed in to change notification settings - Fork 2
38 lines (33 loc) · 848 Bytes
/
cd.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
name: github pages
on:
push:
branches:
- master
jobs:
deploy:
permissions:
contents: write
runs-on: ${{ matrix.os }}
strategy:
matrix:
node_version: [20.x]
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Use Node.js ${{ matrix.node_version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node_version }}
registry-url: 'https://registry.yarnpkg.com'
- name: install pnpm
run: npm i pnpm@latest -g
- run: pnpm install
- run: pnpm build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
# if: github.ref == 'refs/heads/master'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist