-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (34 loc) · 988 Bytes
/
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
name: Generate Documentation
on:
workflow_dispatch: {}
permissions:
actions: write
contents: write
jobs:
build-linux:
runs-on: ubuntu-latest
strategy:
max-parallel: 16
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: '3.10'
- name: Add conda to system path
run: |
# $CONDA is an environment variable pointing to the root of the miniconda directory
echo $CONDA/bin >> $GITHUB_PATH
- name: Install dependencies
run: |
pip install --no-cache-dir -r services/python/requirements.txt
- name: Generate documentation
run: |
bash scripts/create_docs.sh
- name: Deploy to GitHub pages 🚀
if: github.event_name != 'pull_request'
uses: JamesIves/github-pages-deploy-action@v4.4.1
with:
clean: false
branch: gh-pages
folder: html