Skip to content

Commit 0d4817e

Browse files
committed
ci: update docs actions
1 parent 96edecd commit 0d4817e

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

.github/workflows/deploy.yml

+7-10
Original file line numberDiff line numberDiff line change
@@ -17,25 +17,21 @@ permissions:
1717
pages: write
1818
id-token: write
1919

20-
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
21-
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
2220
concurrency:
2321
group: pages
2422
cancel-in-progress: false
2523

2624
jobs:
27-
# Build job
2825
build:
2926
runs-on: ubuntu-latest
3027
steps:
3128
- name: Checkout
3229
uses: actions/checkout@v4
3330
with:
34-
fetch-depth: 0 # Not needed if lastUpdated is not enabled
35-
- uses: pnpm/action-setup@v3 # Uncomment this if you're using pnpm
31+
fetch-depth: 0
32+
- uses: pnpm/action-setup@v3
3633
with:
3734
version: 9
38-
# - uses: oven-sh/setup-bun@v1 # Uncomment this if you're using Bun
3935
- name: Setup Node
4036
uses: actions/setup-node@v4
4137
with:
@@ -44,15 +40,16 @@ jobs:
4440
- name: Setup Pages
4541
uses: actions/configure-pages@v4
4642
- name: Install dependencies
47-
run: pnpm install # or pnpm install / yarn install / bun install
48-
- name: Build with VitePress
49-
run: pnpm docs:build # or pnpm docs:build / yarn docs:build / bun run docs:build
43+
run: pnpm install
44+
- name: Analyze
45+
run: pnpm analyze
46+
- name: Build Docs
47+
run: pnpm docs:build
5048
- name: Upload artifact
5149
uses: actions/upload-pages-artifact@v3
5250
with:
5351
path: docs/.vitepress/dist
5452

55-
# Deployment job
5653
deploy:
5754
environment:
5855
name: github-pages

0 commit comments

Comments
 (0)