File tree Expand file tree Collapse file tree 2 files changed +49
-0
lines changed Expand file tree Collapse file tree 2 files changed +49
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Deploy
2+
3+ on :
4+ push :
5+ branches : [master]
6+ workflow_dispatch :
7+
8+ permissions :
9+ contents : read
10+ pages : write
11+ id-token : write
12+
13+ concurrency :
14+ group : pages
15+ cancel-in-progress : false
16+
17+ jobs :
18+ build :
19+ runs-on : ubuntu-latest
20+ steps :
21+ - uses : pnpm/action-setup@v4
22+ - uses : actions/setup-node@v4
23+ with :
24+ node-version : 22
25+ cache : pnpm
26+
27+ - uses : actions/configure-pages@v5
28+
29+ - uses : actions/checkout@v4
30+
31+ - run : pnpm install
32+ - run : npm run build
33+
34+ - uses : actions/upload-pages-artifact@v3
35+ with :
36+ path : docs/.vitepress/dist
37+
38+ deploy :
39+ environment :
40+ name : github-pages
41+ url : ${{ steps.deployment.outputs.page_url }}
42+
43+ runs-on : ubuntu-latest
44+ needs : build
45+
46+ steps :
47+ - id : deployment
48+ uses : actions/deploy-pages@v4
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import { defineConfig } from "vitepress";
33export default defineConfig ( {
44 title : "Lagrange.Milky" ,
55 description : "Lagrange.Milky 使用手册" ,
6+ base : "/Lagrange.Milky.Document/" ,
67 cleanUrls : true ,
78 srcDir : "src" ,
89 themeConfig : {
You can’t perform that action at this time.
0 commit comments