File tree 5 files changed +27
-14
lines changed
5 files changed +27
-14
lines changed Original file line number Diff line number Diff line change 6
6
paths :
7
7
- " docs/**"
8
8
branches :
9
- - master
9
+ - main
10
10
# trigger deployment manually
11
11
workflow_dispatch :
12
12
13
+ permissions :
14
+ contents : write
15
+ pages : write
16
+ id-token : write
17
+
13
18
jobs :
14
- deploy :
19
+ build :
15
20
runs-on : ubuntu-latest
16
21
defaults :
17
22
run :
@@ -43,17 +48,25 @@ jobs:
43
48
run : npm install
44
49
45
50
- name : Build VitePress site
46
- run : npm run build
51
+ run : npm run docs: build
47
52
48
53
- name : Bundle CNAME with site dist
49
54
run : cp CNAME .vitepress/dist
50
55
51
- - name : Deploy to GitHub Pages
52
- uses : crazy-max/ghaction-github-pages@v4
56
+
57
+ - name : Upload artifact
58
+ uses : actions/upload-pages-artifact@v3
53
59
with :
54
- # deploy to gh-pages branch
55
- target_branch : gh-pages
56
- # deploy the default output dir of VitePress
57
- build_dir : docs/.vitepress/dist
58
- env :
59
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
60
+ path : docs/.vitepress/dist
61
+ # Deployment job
62
+ deploy :
63
+ environment :
64
+ name : github-pages
65
+ url : ${{ steps.deployment.outputs.page_url }}
66
+ needs : build
67
+ runs-on : ubuntu-latest
68
+ name : Deploy
69
+ steps :
70
+ - name : Deploy to GitHub Pages
71
+ id : deployment
72
+ uses : actions/deploy-pages@v4
Original file line number Diff line number Diff line change
1
+ vfox.lhan.me
Original file line number Diff line number Diff line change 8
8
tagline : 😉Easily manage all your SDK versions~
9
9
image :
10
10
src : /logo.png
11
- alt : VitePress
11
+ alt : vfox
12
12
actions :
13
13
- theme : brand
14
14
text : 👋Get Started
Original file line number Diff line number Diff line change 8
8
tagline : 😉轻松管理你的工具和运行环境~
9
9
image :
10
10
src : /logo.png
11
- alt : VitePress
11
+ alt : vfox
12
12
actions :
13
13
- theme : brand
14
14
text : 👋快速上手
Original file line number Diff line number Diff line change 1
1
# 所有命令
2
2
3
3
4
-
5
4
## List
6
5
7
6
查看当前已安装的所有SDK版本。
You can’t perform that action at this time.
0 commit comments