-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (43 loc) · 1.28 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
name: docs
on:
push:
branches:
- main
jobs:
deploy-ghpages:
runs-on: ubuntu-latest
strategy:
#max-parallel: 3
matrix:
python-version: [3.9]
fail-fast: false
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Python ${{ matrix.python-version }} 🐍
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install package
run: |
chmod +x install.sh
bash -l ./install.sh -n smefit_installation
- name: Build docs 🔨
run: |
source /usr/share/miniconda/bin/activate /usr/share/miniconda/envs/smefit_installation
pip install sphinx
pip install sphinx-rtd-theme
pip install sphinxcontrib-bibtex
pip install nbsphinx
pip install recommonmark
conda install pandoc
cd docs
mkdir -p source/development
make html
- name: Deploy 🚀
uses: JamesIves/[email protected]
with:
branch: gh-pages # The branch the action should deploy to.
folder: "docs/build/html" # The folder the action should deploy.