Skip to content

Commit

Permalink
ci: 添加 ci 配置
Browse files Browse the repository at this point in the history
  • Loading branch information
Alfred-Skyblue committed May 6, 2024
1 parent 00a1709 commit 607e521
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
37 changes: 37 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Deploy To Github pages
on:
push:
branches:
- main

env:
NODE_VERSION: lts/*

jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
persist-credentials: false
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8.x
- name: Set node version to LTS
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
registry-url: https://registry.npmjs.org/
cache: pnpm
- name: Install and Build
run: |
pnpm run install-fonts
pnpm run docs:build
- name: Deploy
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: ./packages/.vitepress/dist

2 changes: 1 addition & 1 deletion packages/metadata/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@
"index.*"
],
"scripts": {
"update": "esno scripts/update.ts && cat ./index.json"
"update": "esno scripts/update.ts"
}
}

0 comments on commit 607e521

Please sign in to comment.