Skip to content

Commit 85d289f

Browse files
committed
Revert "chore: remove docs.yml"
This reverts commit 3022472.
1 parent 14dfa5e commit 85d289f

1 file changed

Lines changed: 63 additions & 0 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
name: Deploy VitePress site to Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- docs/**
9+
- .github/workflows/deploy.yml
10+
workflow_dispatch:
11+
12+
permissions:
13+
contents: read
14+
pages: write
15+
id-token: write
16+
17+
concurrency:
18+
group: pages
19+
cancel-in-progress: false
20+
21+
jobs:
22+
build:
23+
defaults:
24+
run:
25+
working-directory: docs
26+
runs-on: ubuntu-latest
27+
steps:
28+
- name: Checkout
29+
uses: actions/checkout@v6
30+
with:
31+
fetch-depth: 0
32+
33+
- name: Setup Node
34+
uses: actions/setup-node@v6
35+
with:
36+
node-version: 24
37+
cache: npm
38+
cache-dependency-path: docs/package-lock.json
39+
40+
- name: Setup Pages
41+
uses: actions/configure-pages@v6
42+
43+
- name: Install dependencies
44+
run: npm ci
45+
46+
- name: Build with VitePress
47+
run: npm run build
48+
49+
- name: Upload artifact
50+
uses: actions/upload-pages-artifact@v5
51+
with:
52+
path: docs/.vitepress/dist
53+
54+
deploy:
55+
environment:
56+
name: github-pages
57+
url: ${{ steps.deployment.outputs.page_url }}
58+
needs: build
59+
runs-on: ubuntu-latest
60+
steps:
61+
- name: Deploy to GitHub Pages
62+
id: deployment
63+
uses: actions/deploy-pages@v5

0 commit comments

Comments
 (0)