File tree 4 files changed +29
-0
lines changed
4 files changed +29
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Deploy
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+
8
+ jobs :
9
+ deploy :
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ - uses : actions/checkout@v2
13
+ - uses : actions/setup-node@v3
14
+ with :
15
+ node-version : 16
16
+ cache : yarn
17
+ - run : yarn install --frozen-lockfile
18
+
19
+ - name : Build
20
+ run : yarn docs:build
21
+
22
+ - name : Deploy
23
+ uses : peaceiris/actions-gh-pages@v3
24
+ with :
25
+ github_token : ${{ secrets.GITHUB_TOKEN }}
26
+ publish_dir : docs/.vitepress/dist
Original file line number Diff line number Diff line change 1
1
node_modules
2
+ docs /.vitepress /dist
Original file line number Diff line number Diff line change
1
+ ## doc
Original file line number Diff line number Diff line change 1
1
import { defineConfig } from 'vitepress'
2
2
3
3
export default defineConfig ( {
4
+ base : '/my-doc/' ,
4
5
title : '个人文档' ,
5
6
description : '个人学习过程中的笔记' ,
6
7
lastUpdated : true ,
You can’t perform that action at this time.
0 commit comments