Skip to content

Commit 43fbef2

Browse files
authored
feat: update to new website
1 parent 3c372c8 commit 43fbef2

75 files changed

Lines changed: 12406 additions & 732 deletions

Some content is hidden

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

.cache/plugin/git-committers/page-authors.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

.github/workflows/ci.yml

Lines changed: 45 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,55 @@
1-
name: ci
1+
name: Deploy
2+
23
on:
34
push:
45
branches:
5-
- master
66
- main
7+
- master
8+
workflow_dispatch:
9+
710
permissions:
8-
contents: write
11+
contents: read
12+
pages: write
13+
id-token: write
14+
15+
concurrency:
16+
group: pages
17+
cancel-in-progress: true
18+
919
jobs:
10-
deploy:
20+
build:
1121
runs-on: ubuntu-latest
1222
steps:
13-
- uses: actions/checkout@v4
14-
- name: Configure Git Credentials
15-
run: |
16-
git config user.name github-actions[bot]
17-
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
18-
- uses: actions/setup-python@v5
23+
- name: Checkout
24+
uses: actions/checkout@v4
25+
26+
- name: Setup Node.js
27+
uses: actions/setup-node@v4
1928
with:
20-
python-version: 3.x
21-
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
22-
- uses: actions/cache@v4
29+
node-version: 20
30+
cache: npm
31+
32+
- name: Setup Pages
33+
uses: actions/configure-pages@v5
34+
35+
- name: Install dependencies
36+
run: npm ci
37+
38+
- name: Build site
39+
run: ASTRO_TELEMETRY_DISABLED=1 npm run build
40+
41+
- name: Upload Pages artifact
42+
uses: actions/upload-pages-artifact@v3
2343
with:
24-
key: mkdocs-material-${{ env.cache_id }}
25-
path: .cache
26-
restore-keys: |
27-
mkdocs-material-
28-
- run: pip install mkdocs-material jieba mkdocs-git-revision-date-localized-plugin mkdocs-git-committers-plugin-2
29-
- run: mkdocs gh-deploy --force
44+
path: ./dist
45+
46+
deploy:
47+
needs: build
48+
runs-on: ubuntu-latest
49+
environment:
50+
name: github-pages
51+
url: ${{ steps.deployment.outputs.page_url }}
52+
steps:
53+
- name: Deploy to GitHub Pages
54+
id: deployment
55+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 0 additions & 170 deletions
This file was deleted.

0 commit comments

Comments
 (0)