Compare commits
18 Commits
f72e05981d
...
66f2387853
| Author | SHA1 | Date | |
|---|---|---|---|
| 66f2387853 | |||
| 78226a54b9 | |||
| 53974d6a81 | |||
| 48fb271176 | |||
| dc336c4b7c | |||
| bc4b09d231 | |||
| 89a97b28db | |||
| 66c6a4738c | |||
| 8a20141342 | |||
| 0262b129d7 | |||
| 4dbe428e8d | |||
| 5e1654978f | |||
| 5395cffd2a | |||
| e62a4646a4 | |||
| fd99ceb16b | |||
| c1a16b8587 | |||
|
|
24a999724a | ||
|
|
c62c0c28bc |
47
.gitea/workflows/deploy.yaml
Normal file
47
.gitea/workflows/deploy.yaml
Normal file
@@ -0,0 +1,47 @@
|
||||
name: deploying-doc
|
||||
run-name: Deploying doc — ${{ gitea.run_id }}
|
||||
on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: 30 04 * * 1,4
|
||||
pull_request:
|
||||
types: [closed]
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
build-and-deploy:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
deployments: write
|
||||
steps:
|
||||
- name: 🚚 Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- uses: pnpm/action-setup@v4
|
||||
name: 🔧Install pnpm
|
||||
with:
|
||||
version: 9
|
||||
run_install: false
|
||||
|
||||
- name: 🔧Install Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 20
|
||||
cache: 'pnpm'
|
||||
|
||||
- name: 🔧Install dependencies
|
||||
run: pnpm install
|
||||
|
||||
- name: 🔴Build doc
|
||||
run: pnpm run docs:build
|
||||
|
||||
- name: 🚀 Deploy to Cloudflare Pages
|
||||
uses: cloudflare/wrangler-action@v3
|
||||
with:
|
||||
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
||||
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
||||
command: pages deploy ./src/.vuepress/dist --project-name=jingji-tsreference-vue
|
||||
@@ -1,14 +1,15 @@
|
||||
# 荆棘鸟文学社参考文档
|
||||

|
||||

|
||||
|
||||
|
||||
## 开发
|
||||
1. 依赖环境
|
||||
- Node.js v20.17.0
|
||||
- Node.js v22.11.0
|
||||
- volta
|
||||
|
||||
2. 建议使用 [volta](https://volta.sh/) 安装 [Node.js](https://nodejs.org/)
|
||||
```sh
|
||||
volta install node@20.17.0
|
||||
volta install node@22.11.0
|
||||
```
|
||||
```sh
|
||||
volta install pnpm
|
||||
|
||||
Reference in New Issue
Block a user