Skip to content

Commit ab625f6

Browse files
ci: build and deploy docs to gh-pages on release (#1374)
1 parent a823058 commit ab625f6

5,258 files changed

Lines changed: 51 additions & 65845 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Deploy documentation to GitHub Pages
2+
3+
inputs:
4+
node-version:
5+
required: true
6+
token:
7+
required: true
8+
9+
runs:
10+
using: composite
11+
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v4
15+
16+
- name: Setup Node
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: ${{ inputs.node-version }}
20+
cache: "yarn"
21+
22+
- name: Install dependencies
23+
shell: bash
24+
run: yarn install --frozen-lockfile
25+
26+
- name: Build documentation
27+
shell: bash
28+
run: yarn docs:build
29+
30+
- name: Deploy to GitHub Pages
31+
uses: peaceiris/actions-gh-pages@v4
32+
with:
33+
github_token: ${{ inputs.token }}
34+
publish_dir: ./docs
35+
publish_branch: gh-pages

.github/workflows/release.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,18 @@ jobs:
2222
require-build: true
2323
secrets:
2424
github-token: ${{ secrets.GITHUB_TOKEN }}
25+
26+
deploy-docs:
27+
name: Deploy Documentation
28+
needs: release
29+
if: github.event_name == 'workflow_dispatch' || (github.event_name == 'pull_request' && github.event.pull_request.merged && startsWith(github.event.pull_request.head.ref, 'release/'))
30+
runs-on: ubuntu-latest
31+
permissions:
32+
contents: write
33+
steps:
34+
- uses: actions/checkout@v4
35+
36+
- uses: ./.github/actions/deploy-docs
37+
with:
38+
node-version: 22.23.1
39+
token: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
node_modules
22
.DS_Store
33
/dist
4+
/docs
45
/coverage
56
*.lcov

docs/.nojekyll

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/assets/hierarchy.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/assets/highlight.css

Lines changed: 0 additions & 141 deletions
This file was deleted.

0 commit comments

Comments
 (0)