Skip to content

Commit 4a9a99c

Browse files
committed
improve
1 parent 74f72e6 commit 4a9a99c

File tree

74 files changed

+1206
-1114
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+1206
-1114
lines changed

.github/workflows/github-pages.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Deploy VitePress with GitHub Pages
2+
3+
on:
4+
pull_request: # TEMPORARY !!!
5+
push:
6+
branches: ["master"]
7+
workflow_dispatch:
8+
9+
permissions:
10+
contents: read
11+
pages: write
12+
id-token: write
13+
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+
25+
- name: Setup Node.js
26+
uses: actions/setup-node@v4
27+
with:
28+
node-version: 22
29+
cache: npm
30+
31+
- name: Install dependencies
32+
run: npm ci
33+
34+
- name: Build VitePress site
35+
run: npm run build
36+
37+
- name: Upload artifact
38+
uses: actions/upload-pages-artifact@v4
39+
with:
40+
path: src/.vitepress/dist
41+
42+
deploy:
43+
# if: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }}
44+
environment:
45+
name: github-pages
46+
url: ${{ steps.deployment.outputs.page_url }}
47+
runs-on: ubuntu-latest
48+
needs: build
49+
steps:
50+
- name: Deploy to GitHub Pages
51+
id: deployment
52+
uses: actions/deploy-pages@v4

Makefile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
init:
22
npm install
33

4-
up:
4+
build:
5+
npm run build
6+
7+
preview:
8+
npm run preview
9+
10+
dev:
511
npm run dev
612

713
po4a:

0 commit comments

Comments
 (0)