Skip to content

Commit 20c7f19

Browse files
committed
feat: deploy ci
1 parent 65bb371 commit 20c7f19

File tree

2 files changed

+49
-0
lines changed

2 files changed

+49
-0
lines changed

.github/workflows/deploy.yaml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Deploy
2+
3+
on:
4+
push:
5+
branches: [master]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
concurrency:
14+
group: pages
15+
cancel-in-progress: false
16+
17+
jobs:
18+
build:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: pnpm/action-setup@v4
22+
- uses: actions/setup-node@v4
23+
with:
24+
node-version: 22
25+
cache: pnpm
26+
27+
- uses: actions/configure-pages@v5
28+
29+
- uses: actions/checkout@v4
30+
31+
- run: pnpm install
32+
- run: npm run build
33+
34+
- uses: actions/upload-pages-artifact@v3
35+
with:
36+
path: docs/.vitepress/dist
37+
38+
deploy:
39+
environment:
40+
name: github-pages
41+
url: ${{ steps.deployment.outputs.page_url }}
42+
43+
runs-on: ubuntu-latest
44+
needs: build
45+
46+
steps:
47+
- id: deployment
48+
uses: actions/deploy-pages@v4

.vitepress/config.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { defineConfig } from "vitepress";
33
export default defineConfig({
44
title: "Lagrange.Milky",
55
description: "Lagrange.Milky 使用手册",
6+
base: "/Lagrange.Milky.Document/",
67
cleanUrls: true,
78
srcDir: "src",
89
themeConfig: {

0 commit comments

Comments
 (0)