-
Notifications
You must be signed in to change notification settings - Fork 5
52 lines (42 loc) · 1.11 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
name: docs deployment
on:
push:
branches:
- master
concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: true
jobs:
docs:
if: github.repository == 'MDAnalysis/MDAnalysisData'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: Install deps
run: |
python -m pip install "mdanalysis-sphinx-theme>=1.0.1" sphinx-sitemap
- name: Install main dependencies
run: |
python -m pip install tqdm
- name: install package
run: |
pip install -v .
- name: build docs
run: |
cd docs
make html
- name: deploy docs
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/_build/html
user_name: 'github-actions'
user_email: 'github-action@users.noreply.github.com'