-
-
Notifications
You must be signed in to change notification settings - Fork 46
52 lines (42 loc) · 1.28 KB
/
documentation.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
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Documentation
run-name: Building the documentation for the release
on:
release:
types: [released]
jobs:
# Builds and packages the documentation
build:
runs-on: ubuntu-latest
steps:
# Setting up Node
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '20.x'
# Enabling CorePack
- run: corepack enable
# Installing dependencies
- run: yarn
# Generating docs
- run: npx typedoc src/index.ts
# Packaging the static site as artifact
- uses: actions/upload-pages-artifact@v2
with:
path: ./docs
# Deploys the packaged documentation
deploy:
# Building and packaging the documentation
needs: build
# Granting necessary permissions
permissions:
pages: write
id-token: write
# Setting up GH pages environment
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
# Deploying to gh pages
- id: deployment
uses: actions/deploy-pages@v2