Skip to content

Commit 8459707

Browse files
author
yinxiangzheng3
committed
docs: 优化docs构建命令
1 parent cb99700 commit 8459707

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/deploy-docs.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ jobs:
2929
working-directory: website
3030
steps:
3131
- name: Checkout
32-
uses: actions/checkout@v4
32+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3333
with:
34-
fetch-depth: 0 # 拉取完整历史,供 lastUpdated 生成时间
34+
fetch-depth: 0
3535

3636
- name: Setup Node
37-
uses: actions/setup-node@v4
37+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
3838
with:
3939
node-version: 20
4040
cache: 'npm'
@@ -47,10 +47,10 @@ jobs:
4747
run: npm run build
4848

4949
- name: Setup Pages
50-
uses: actions/configure-pages@v5
50+
uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5.0.0
5151

5252
- name: Upload artifact
53-
uses: actions/upload-pages-artifact@v3
53+
uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3.0.1
5454
with:
5555
path: website/.vitepress/dist
5656

@@ -63,4 +63,4 @@ jobs:
6363
steps:
6464
- name: Deploy to GitHub Pages
6565
id: deployment
66-
uses: actions/deploy-pages@v4
66+
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4.0.5

0 commit comments

Comments
 (0)