-
Notifications
You must be signed in to change notification settings - Fork 98
44 lines (35 loc) · 1.09 KB
/
doc_generation.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
# Generate the complete documentation then upload to the website under the master section
name: "Doc generation"
on:
pull_request: ~
push:
branches:
- master
release:
types:
- created
jobs:
doc-generation:
name: "Doc generation"
runs-on: "ubuntu-latest"
steps:
- name: "Checkout"
uses: "actions/checkout@v4"
- name: "Setup NodeJS"
uses: actions/setup-node@v3
with:
node-version: '16.x'
- name: "Yarn install"
run: yarn install
working-directory: "website"
- name: "Yarn build"
run: yarn run build
working-directory: "website"
- name: "Deploy website"
if: "${{ github.event_name == 'push' || github.event_name == 'release' }}"
uses: JamesIves/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages # The branch the action should deploy to.
folder: website/build # The folder the action should deploy.
clean: true # Automatically remove deleted files from the deploy branch