File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,41 +15,44 @@ concurrency:
1515 cancel-in-progress : false
1616
1717jobs :
18+ # Build job
1819 build :
1920 runs-on : ubuntu-latest
2021 steps :
2122 - name : Checkout
22- uses : actions/checkout@v4
23+ uses : actions/checkout@v5
2324 with :
24- fetch-depth : 0
25+ fetch-depth : 0 # Not needed if lastUpdated is not enabled
2526
2627 - name : Setup Node
27- uses : actions/setup-node@v4
28+ uses : actions/setup-node@v6
2829 with :
29- node-version : 20
30- cache : npm
30+ node-version : 24
31+ cache : npm # or pnpm / yarn
3132
3233 - name : Setup Pages
3334 uses : actions/configure-pages@v4
3435
3536 - name : Install dependencies
36- run : npm ci
37+ run : npm ci # or pnpm install / yarn install / bun install
3738
38- - name : Build
39+ - name : Build with VitePress
3940 run : npm run build
4041
4142 - name : Upload artifact
4243 uses : actions/upload-pages-artifact@v3
4344 with :
4445 path : .vitepress/dist
4546
47+ # Deployment job
4648 deploy :
4749 environment :
4850 name : github-pages
4951 url : ${{ steps.deployment.outputs.page_url }}
5052 needs : build
5153 runs-on : ubuntu-latest
54+ name : Deploy
5255 steps :
5356 - name : Deploy to GitHub Pages
5457 id : deployment
55- uses : actions/deploy-pages@v4
58+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments