Skip to content

Commit 095fcbe

Browse files
committed
action
1 parent 1297529 commit 095fcbe

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

.github/workflows/deploy-docs.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
2+
name: Deploy Docs
3+
4+
on:
5+
push:
6+
branches:
7+
# make sure this is the branch you are using
8+
- main
9+
10+
permissions:
11+
contents: write
12+
13+
jobs:
14+
deploy-gh-pages:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v3
19+
with:
20+
fetch-depth: 0
21+
# if your docs needs submodules, uncomment the following line
22+
# submodules: true
23+
24+
25+
26+
- name: Setup Node.js
27+
uses: actions/setup-node@v3
28+
with:
29+
node-version: 20
30+
cache: yarn
31+
32+
- name: Install Deps
33+
run: yarn install --frozen-lockfile
34+
35+
- name: Build Docs
36+
env:
37+
NODE_OPTIONS: --max_old_space_size=8192
38+
run: |-
39+
yarn run docs:build
40+
> docs/.vuepress/dist/.nojekyll
41+
42+
- name: Deploy Docs
43+
uses: JamesIves/github-pages-deploy-action@v4
44+
with:
45+
# This is the branch where the docs are deployed to
46+
branch: gh-pages
47+
folder: docs/.vuepress/dist

0 commit comments

Comments
 (0)