File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -153,26 +153,26 @@ Cache-Control: max-age=31536000,immutable
153
153
runs-on : ubuntu-latest
154
154
steps :
155
155
- name : Checkout
156
- uses : actions/checkout@v3
156
+ uses : actions/checkout@v4
157
157
with :
158
158
fetch-depth : 0 # 如果未启用 lastUpdated,则不需要
159
159
# - uses: pnpm/action-setup@v2 # 如果使用 pnpm,请取消注释
160
160
# - uses: oven-sh/setup-bun@v1 # 如果使用 Bun,请取消注释
161
161
- name : Setup Node
162
- uses : actions/setup-node@v3
162
+ uses : actions/setup-node@v4
163
163
with :
164
- node-version : 18
164
+ node-version : 20
165
165
cache : npm # 或 pnpm / yarn
166
166
- name : Setup Pages
167
- uses : actions/configure-pages@v3
167
+ uses : actions/configure-pages@v4
168
168
- name : Install dependencies
169
169
run : npm ci # 或 pnpm install / yarn install / bun install
170
170
- name : Build with VitePress
171
171
run : |
172
172
npm run docs:build # 或 pnpm docs:build / yarn docs:build / bun run docs:build
173
173
touch docs/.vitepress/dist/.nojekyll
174
174
- name : Upload artifact
175
- uses : actions/upload-pages-artifact@v2
175
+ uses : actions/upload-pages-artifact@v3
176
176
with :
177
177
path : docs/.vitepress/dist
178
178
@@ -187,7 +187,7 @@ Cache-Control: max-age=31536000,immutable
187
187
steps :
188
188
- name : Deploy to GitHub Pages
189
189
id : deployment
190
- uses : actions/deploy-pages@v2
190
+ uses : actions/deploy-pages@v4
191
191
` ` `
192
192
193
193
::: warning
You can’t perform that action at this time.
0 commit comments