Skip to content

Commit 7429f95

Browse files
committed
+ deploy.yml
1 parent 34a3737 commit 7429f95

1 file changed

Lines changed: 55 additions & 0 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Deploy VitePress site to Pages
2+
on:
3+
# push:
4+
# branches: [master]
5+
workflow_dispatch:
6+
7+
permissions:
8+
contents: read
9+
pages: write
10+
id-token: write
11+
12+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
13+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
14+
concurrency:
15+
group: pages
16+
cancel-in-progress: false
17+
18+
jobs:
19+
build:
20+
runs-on: ubuntu-latest
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@v6
24+
with:
25+
fetch-depth: 0
26+
- name: Setup Node
27+
uses: actions/setup-node@v6
28+
with:
29+
node-version: 24
30+
cache: npm
31+
cache-dependency-path: docs/package-lock.json
32+
- name: Setup Pages
33+
uses: actions/configure-pages@v4
34+
- name: Install dependencies
35+
working-directory: docs/
36+
run: npm ci
37+
- name: Build with VitePress
38+
working-directory: docs/
39+
run: npm run build
40+
- name: Upload artifact
41+
uses: actions/upload-pages-artifact@v3
42+
with:
43+
path: docs/.vitepress/dist
44+
45+
deploy:
46+
environment:
47+
name: github-pages
48+
url: ${{ steps.deployment.outputs.page_url }}
49+
needs: build
50+
runs-on: ubuntu-latest
51+
name: Deploy
52+
steps:
53+
- name: Deploy to GitHub Pages
54+
id: deployment
55+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)