Skip to content

Commit 1d3b4cf

Browse files
committed
chore: 尝试修复github pages的部署问题
1 parent 29e054f commit 1d3b4cf

2 files changed

Lines changed: 15 additions & 7 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,9 @@ concurrency:
1515
cancel-in-progress: true
1616

1717
jobs:
18-
build-and-deploy:
18+
build:
1919
runs-on: ubuntu-latest
2020

21-
environment:
22-
name: github-pages
23-
url: ${{ steps.deployment.outputs.page_url }}
24-
2521
steps:
2622
- name: Checkout
2723
uses: actions/checkout@v4
@@ -32,6 +28,7 @@ jobs:
3228
- name: Set up Node.js
3329
uses: actions/setup-node@v4
3430
with:
31+
node-version: 24
3532
cache: 'pnpm'
3633

3734
- name: Install and Build
@@ -40,9 +37,19 @@ jobs:
4037
pnpm build
4138
4239
- name: Upload artifact
43-
uses: actions/upload-pages-artifact@v3
40+
uses: actions/upload-pages-artifact@v5
4441
with:
4542
path: './dist'
43+
44+
deploy:
45+
needs: build
46+
runs-on: ubuntu-latest
47+
48+
environment:
49+
name: github-pages
50+
url: ${{ steps.deployment.outputs.page_url }}
51+
52+
steps:
4653
- name: Deploy to GitHub Pages
4754
id: deployment
48-
uses: actions/deploy-pages@v4
55+
uses: actions/deploy-pages@v5

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ jobs:
3737
- name: Set up Node.js
3838
uses: actions/setup-node@v4
3939
with:
40+
node-version: 24
4041
cache: 'pnpm'
4142

4243
- name: Normalize and validate version

0 commit comments

Comments
 (0)