-
Notifications
You must be signed in to change notification settings - Fork 2
46 lines (44 loc) · 1.3 KB
/
gh_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
name: gh-pages docs
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Install doc deps
run: |
pip install .[docs]
- name: Install Pandoc dependency for nbconvert
run: |
sudo apt-get install pandoc
- name: Clean docs build
run: |
make -C docs clean
- name: Cache/Restore the AS 209 measurement set
uses: actions/cache@v3
env:
cache-name: cache-AS209
with:
# files are stored in docs/tutorials/AS209_MS
path: docs/tutorials/AS209_MS
# we want to hash off of the build script
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('docs/tutorials/dl_and_tclean_AS209.py') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Build the docs
run: |
make -C docs html
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/_build/html