Skip to content

Commit 14daf44

Browse files
committed
🔧 modify deploy.yml
1 parent 3ac361d commit 14daf44

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ concurrency:
2727

2828
jobs:
2929
# 构建工作
30-
build:
30+
build-and-deploy:
3131
runs-on: ubuntu-latest
3232
steps:
3333
- name: Checkout
@@ -49,17 +49,6 @@ jobs:
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
@@ -68,4 +57,3 @@ jobs:
6857
publish_dir: .vitepress/dist
6958
external_repository: ArcletProject/ArcletProject.github.io
7059
publish_branch: main # org.github.io 仓库的主分支
71-
force_orphan: 'true'

0 commit comments

Comments
 (0)