-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (38 loc) · 1.17 KB
/
docs.yaml
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
name: docs
on:
push:
branches:
- master
env:
DOIT_NUM_PROCESS: 0
jobs:
docs:
runs-on: ubuntu-latest
steps:
- name: checkout repository
uses: actions/checkout@v2
- name: install ubuntu requirements
run: |
sudo apt update
sudo apt install -q -y $(< requirements.github.ubuntu.txt)
- name: install python
uses: actions/setup-python@v1
with:
python-version: "3.10"
- name: install python requirements
run: |
python -m pip install --upgrade pip
python -m pip install -e '.[dev]'
- name: doit docs
run: doit docs
- name: create CNAME
if: github.repository == 'hat-open/hat-util'
run: |
echo "hat-util.hat-open.com" > build/docs/CNAME
- name: deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build/docs
publish_branch: gh-pages
force_orphan: true