Skip to content

Commit ec0dcf6

Browse files
committed
chore: added docs
1 parent 223d3b2 commit ec0dcf6

26 files changed

+2348
-934
lines changed

.github/workflows/deploy.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Deploy
2+
3+
on:
4+
workflow_dispatch:
5+
6+
push:
7+
branches:
8+
- master
9+
10+
permissions:
11+
contents: write
12+
13+
concurrency:
14+
group: pages
15+
cancel-in-progress: false
16+
17+
jobs:
18+
build-and-deploy:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v4
23+
with:
24+
fetch-depth: 0
25+
26+
- name: Setup Node
27+
uses: actions/setup-node@v4
28+
with:
29+
node-version: 20
30+
31+
- name: Install dependencies
32+
run: npm install
33+
34+
- name: Build with VitePress
35+
run: |
36+
npm run docs:build
37+
ls
38+
39+
- name: Deploy Github Pages
40+
uses: JamesIves/github-pages-deploy-action@v4
41+
with:
42+
folder: docs/.vitepress/dist

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,7 @@ yarn-error.log*
1515
# lock files
1616
package-lock.json
1717
yarn.lock
18+
19+
# vitepress
20+
cache
21+
docs/*/dist

0 commit comments

Comments
 (0)