-
Notifications
You must be signed in to change notification settings - Fork 13
56 lines (47 loc) · 1.37 KB
/
docs.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
53
54
55
56
name: Docs
on:
pull_request:
push:
branches: [main]
tags:
- '*'
env:
COMMIT_EMAIL: [email protected]
MAKE_TARGET: all
OWNER: tskit-dev
REPO: tsinfer
jobs:
build-deploy-docs:
name: Docs
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: "pip"
- name: Install deps (one by one to avoid conflict errors)
run: |
pip install --upgrade pip wheel
pip install -r requirements/CI-docs/requirements.txt
sudo apt-get install -y tabix
- name: Build C module
if: env.MAKE_TARGET
run: |
make $MAKE_TARGET
- name: Build Docs
run: |
cd docs && make dist
- name: Trigger docs site rebuild
if: github.ref == 'refs/heads/main'
run: |
curl -X POST https://api.github.com/repos/tskit-dev/tskit-site/dispatches \
-H 'Accept: application/vnd.github.everest-preview+json' \
-u AdminBot-tskit:${{ secrets.ADMINBOT_TOKEN }} \
--data '{"event_type":"build-docs"}'