构建
This commit is contained in:
1 parent
73020a33b2
commit
32a9c49a0b
1 file changed
+4
-4
@@ -32,7 +32,7 @@ jobs:
|
|||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0 # 如果未启用 lastUpdated,则不需要
|
fetch-depth: 0 # 如果未启用 lastUpdated,则不需要
|
||||||
# - uses: pnpm/action-setup@v3 # 如果使用 pnpm,请取消此区域注释
|
- uses: pnpm/action-setup@v3 # 如果使用 pnpm,请取消此区域注释
|
||||||
# with:
|
# with:
|
||||||
# version: 9
|
# version: 9
|
||||||
# - uses: oven-sh/setup-bun@v1 # 如果使用 Bun,请取消注释
|
# - uses: oven-sh/setup-bun@v1 # 如果使用 Bun,请取消注释
|
||||||
@@ -40,13 +40,13 @@ jobs:
|
|||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 20
|
node-version: 20
|
||||||
cache: npm # 或 pnpm / yarn
|
cache: pnpm # 或 pnpm / yarn
|
||||||
- name: Setup Pages
|
- name: Setup Pages
|
||||||
uses: actions/configure-pages@v4
|
uses: actions/configure-pages@v4
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm ci # 或 pnpm install / yarn install / bun install
|
run: pnpm install # 或 pnpm install / yarn install / bun install
|
||||||
- name: Build with VitePress
|
- name: Build with VitePress
|
||||||
run: npm run docs:build # 或 pnpm docs:build / yarn docs:build / bun run docs:build
|
run: pnpm docs:build # 或 pnpm docs:build / yarn docs:build / bun run docs:build
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
uses: actions/upload-pages-artifact@v3
|
uses: actions/upload-pages-artifact@v3
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in new issue
Block a user