Skip to content

Commit

Permalink
refactor: 迁移至 VitePress
Browse files Browse the repository at this point in the history
  • Loading branch information
Zh40Le1ZOOB committed Jan 14, 2024
0 parents commit aa7943f
Show file tree
Hide file tree
Showing 786 changed files with 120,136 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Build and deploy

on:
push:
paths:
- ".github/**"
- "src/**"
- "package-lock.json"
- "package.json"

permissions:
pages: write
id-token: write

concurrency:
group: "pages"
cancel-in-progress: true

jobs:
build:
name: Build and deploy
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: current
- name: Build
run: |
npm i
npm run docs:build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: "src/.vitepress/dist/"
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
src/.vitepress/cache
src/.vitepress/dist
node_modules
438 changes: 438 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

Loading

0 comments on commit aa7943f

Please sign in to comment.