Skip to content

Commit c2ae9eb

Browse files
Deploy Typedoc docs to GitHub pages
1 parent f7b7a4f commit c2ae9eb

File tree

9 files changed

+48
-10343
lines changed

9 files changed

+48
-10343
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ jobs:
2828
run: yarn install
2929
- name: Run tests
3030
run: yarn ci
31+
3132
build-windows:
3233
continue-on-error: true
3334
runs-on: windows-latest
@@ -47,12 +48,13 @@ jobs:
4748
run: yarn install
4849
- name: Run tests
4950
run: yarn ci
50-
verify-readme:
51+
52+
generate-typedoc:
5153
runs-on: ubuntu-latest
5254
strategy:
5355
matrix:
5456
node-version: [ 22.6 ]
55-
name: Verify README.md
57+
name: Generate typedoc
5658
steps:
5759
- uses: actions/checkout@v4
5860
- name: Use Node.js ${{ matrix.node-version }}
@@ -63,8 +65,16 @@ jobs:
6365
run: corepack enable
6466
- name: Install node modules
6567
run: yarn install
66-
- name: Verify README.md
67-
run: yarn readme && git diff README.md
68+
- name: Build
69+
run: yarn build
70+
- name: Generate typedoc
71+
run: yarn typedoc
72+
- name: Upload static files as artifact
73+
id: deployment
74+
uses: actions/upload-pages-artifact@v3
75+
with:
76+
path: tmp/docs
77+
6878
verify-install:
6979
runs-on: ubuntu-latest
7080
strategy:

.github/workflows/release.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,24 @@ jobs:
2121
uses: softprops/action-gh-release@v2
2222
with:
2323
files: lib/bundle.js
24+
- name: Generate typedoc
25+
run: yarn typedoc
26+
- name: Upload static files as artifact
27+
id: deployment
28+
uses: actions/upload-pages-artifact@v3
29+
with:
30+
path: tmp/docs
31+
32+
typedoc:
33+
runs-on: ubuntu-latest
34+
needs: build
35+
permissions:
36+
pages: write # to deploy to Pages
37+
id-token: write # to verify the deployment originates from an appropriate source
38+
environment:
39+
name: github-pages
40+
url: ${{ steps.deployment.outputs.page_url }}
41+
steps:
42+
- name: Deploy to GitHub Pages
43+
uses: actions/deploy-pages@v4
44+
id: deployment

0 commit comments

Comments
 (0)