Skip to content

Commit c35769e

Browse files
authored
ci(ref-doc): fix workflow (#1126)
1 parent d343fa2 commit c35769e

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/deploy-doc.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ defaults:
2727

2828
jobs:
2929
# Build job
30-
build:
30+
doc-build:
3131
runs-on: ubuntu-22.04
3232
steps:
3333
- name: Checkout
@@ -37,9 +37,9 @@ jobs:
3737
- name: Setup PNPM
3838
uses: pnpm/[email protected]
3939
- name: Setup Node
40-
uses: actions/setup-node@v4.0.1
40+
uses: actions/setup-node@v4
4141
with:
42-
node-version: 18
42+
node-version: 20
4343
check-latest: true
4444
cache: "pnpm"
4545
- name: Setup Pages
@@ -50,17 +50,17 @@ jobs:
5050
- name: Build doc
5151
run: pnpm run doc
5252
- name: Upload artifact
53-
uses: actions/upload-pages-artifact@v2
53+
uses: actions/upload-pages-artifact@v3
5454
with:
5555
path: ./docs
5656

5757
# Deployment job
58-
deploy:
58+
doc-deploy:
59+
needs: doc-build
5960
environment:
6061
name: github-pages
6162
url: ${{ steps.deployment.outputs.page_url }}
62-
runs-on: ubuntu-22.04
63-
needs: build
63+
runs-on: ubuntu-latest
6464
steps:
6565
- name: Deploy to GitHub Pages
6666
id: deployment

0 commit comments

Comments
 (0)