-
-
Notifications
You must be signed in to change notification settings - Fork 98
48 lines (40 loc) 路 1.29 KB
/
Copy pathdocs.yml
File metadata and controls
48 lines (40 loc) 路 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Documentation
on:
workflow_dispatch:
push:
branches: [main]
paths:
- '.github/workflows/docs.yml'
- 'packages/docs/**'
- 'packages/*/package.json'
- 'packages/*/src/**/*.ts'
- 'packages/*/tsconfig*.json'
- 'mise.toml'
- 'pnpm-lock.yaml'
- 'pnpm-workspace.yaml'
- 'tsconfig.base.json'
permissions:
contents: write
concurrency:
group: documentation-deploy
cancel-in-progress: true
jobs:
build-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: jdx/mise-action@v4
- name: Install workspace dependencies
run: pnpm install --frozen-lockfile
- name: Build Blume documentation
run: pnpm --filter docs build
- name: Publish docs branch
if: github.ref == 'refs/heads/main'
uses: peaceiris/actions-gh-pages@84c30a85c19949d7eee79c4ff27748b70285e453 # v4.1.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: docs
publish_dir: ./packages/docs/dist
force_orphan: true