File tree Expand file tree Collapse file tree 1 file changed +1
-13
lines changed
Expand file tree Collapse file tree 1 file changed +1
-13
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ concurrency:
2727
2828jobs :
2929 # 构建工作
30- build :
30+ build-and-deploy :
3131 runs-on : ubuntu-latest
3232 steps :
3333 - name : Checkout
4949 run : npm ci # 或 pnpm install / yarn install / bun install
5050 - name : Build with VitePress
5151 run : npm run docs:build # 或 pnpm docs:build / yarn docs:build / bun run docs:build
52- - name : Upload artifact
53- uses : actions/upload-pages-artifact@v3
54- with :
55- path : .vitepress/dist
56-
57- # 部署工作
58- deploy :
59- needs : build
60- runs-on : ubuntu-latest
61- name : Deploy
62- steps :
6352 - name : Deploy to GitHub Pages
6453 id : deployment
6554 uses : peaceiris/actions-gh-pages@v4
6857 publish_dir : .vitepress/dist
6958 external_repository : ArcletProject/ArcletProject.github.io
7059 publish_branch : main # org.github.io 仓库的主分支
71- force_orphan : ' true'
You can’t perform that action at this time.
0 commit comments