-
Notifications
You must be signed in to change notification settings - Fork 2
43 lines (37 loc) · 898 Bytes
/
update-page.yml
File metadata and controls
43 lines (37 loc) · 898 Bytes
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
name: update-page
on:
push:
branches:
- master
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: latest
run_install: true
- uses: actions/setup-node@v3
with:
cache: pnpm
- run: pnpm install
- run: pnpm run build
env:
NODE_OPTIONS: --max_old_space_size=4096
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/.vuepress/dist
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: build
path: build