Skip to content

Commit 870bd7f

Browse files
committed
typedoc
Signed-off-by: Sora Morimoto <[email protected]>
1 parent 73f6bfd commit 870bd7f

File tree

6 files changed

+220
-442
lines changed

6 files changed

+220
-442
lines changed

.github/workflows/typedoc.yml

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Deploy typedoc to Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
workflow_dispatch:
8+
9+
permissions: read-all
10+
11+
concurrency:
12+
group: pages
13+
cancel-in-progress: true
14+
15+
jobs:
16+
deploy:
17+
environment:
18+
name: github-pages
19+
url: ${{ steps.deployment.outputs.page_url }}
20+
permissions:
21+
contents: read
22+
pages: write
23+
id-token: write
24+
runs-on: ubuntu-latest
25+
steps:
26+
- name: Checkout tree
27+
uses: actions/checkout@v4
28+
29+
- name: Set-up Node.js
30+
uses: actions/setup-node@v4
31+
with:
32+
check-latest: true
33+
node-version-file: .nvmrc
34+
35+
- run: corepack enable
36+
37+
- run: yarn install --immutable
38+
39+
- run: yarn typedoc
40+
41+
- name: Set-up Pages
42+
uses: actions/configure-pages@v5
43+
44+
- name: Upload artifact
45+
uses: actions/upload-pages-artifact@v3
46+
with:
47+
path: docs
48+
49+
- name: Deploy odoc to GitHub Pages
50+
uses: actions/deploy-pages@v4
51+
id: deployment

.github/workflows/version-or-publish.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ permissions: read-all
1212
jobs:
1313
release:
1414
if: ${{ github.repository_owner == 'acacode' }}
15-
runs-on: ubuntu-latest
1615
permissions:
1716
contents: write # to create release
1817
issues: write # to post issue comments
1918
pull-requests: write # to create pull request
19+
runs-on: ubuntu-latest
2020
steps:
2121
- name: Checkout tree
2222
uses: actions/checkout@v4

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
/.yarn/
22
/dist/
3+
/docs/
34
/node_modules/

0 commit comments

Comments
 (0)