-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (30 loc) · 899 Bytes
/
gh-pages.yml
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
name: "Create documentation and deploy to Github pages"
on:
push:
branches:
- main
jobs:
create-documentation-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Enable Corepack
run: corepack enable
- name: Install Dependencies
run: yarn install --immutable
- name: Run tsc for tsc cache
run: yarn tsc
- name: Generate Typedoc
run: yarn typedoc --tsconfig tsconfig.doc.json
- name: Generate Coverage
run: yarn test:coverage:json --coverageDirectory=docs/coverage/
- name: Create nojekyll
run: touch docs/.nojekyll
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs