Skip to content

Commit 54042ef

Browse files
authored
docs: update github workflow example (#3510)
1 parent 04f794b commit 54042ef

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/guide/deploy.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -153,26 +153,26 @@ Don't enable options like _Auto Minify_ for HTML code. It will remove comments f
153153
runs-on: ubuntu-latest
154154
steps:
155155
- name: Checkout
156-
uses: actions/checkout@v3
156+
uses: actions/checkout@v4
157157
with:
158158
fetch-depth: 0 # Not needed if lastUpdated is not enabled
159159
# - uses: pnpm/action-setup@v2 # Uncomment this if you're using pnpm
160160
# - uses: oven-sh/setup-bun@v1 # Uncomment this if you're using Bun
161161
- name: Setup Node
162-
uses: actions/setup-node@v3
162+
uses: actions/setup-node@v4
163163
with:
164-
node-version: 18
164+
node-version: 20
165165
cache: npm # or pnpm / yarn
166166
- name: Setup Pages
167-
uses: actions/configure-pages@v3
167+
uses: actions/configure-pages@v4
168168
- name: Install dependencies
169169
run: npm ci # or pnpm install / yarn install / bun install
170170
- name: Build with VitePress
171171
run: |
172172
npm run docs:build # or pnpm docs:build / yarn docs:build / bun run docs:build
173173
touch docs/.vitepress/dist/.nojekyll
174174
- name: Upload artifact
175-
uses: actions/upload-pages-artifact@v2
175+
uses: actions/upload-pages-artifact@v3
176176
with:
177177
path: docs/.vitepress/dist
178178

@@ -187,7 +187,7 @@ Don't enable options like _Auto Minify_ for HTML code. It will remove comments f
187187
steps:
188188
- name: Deploy to GitHub Pages
189189
id: deployment
190-
uses: actions/deploy-pages@v2
190+
uses: actions/deploy-pages@v4
191191
```
192192
193193
::: warning

0 commit comments

Comments
 (0)