Skip to content

Commit 0573e95

Browse files
committed
Update GitHub Actions workflow to use latest action versions and Node.js 24
1 parent 8a05e72 commit 0573e95

1 file changed

Lines changed: 11 additions & 8 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,41 +15,44 @@ concurrency:
1515
cancel-in-progress: false
1616

1717
jobs:
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

0 commit comments

Comments
 (0)