File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,19 +14,23 @@ jobs:
1414 fetch-depth : 0
1515 ref : ${{ github.ref }}
1616
17- - name : Set up Python
18- uses : actions /setup-python@v4
17+ - name : Set up Conda environment
18+ uses : conda-incubator /setup-miniconda@v2
1919 with :
20- python-version : ' 3.9'
21-
22- - name : Install dependencies
23- run : pip install -r docs/requirements.txt
20+ activate-environment : simopt
21+ environment-file : environment.yml
22+ auto-activate-base : false
2423
2524 - name : Build documentation
26- run : sphinx-build -b html docs/source docs/_build/html
25+ shell : bash -l {0}
26+ run : |
27+ conda activate simopt
28+ sphinx-build -b html docs/source docs/_build/html
2729
2830 - name : Commit and push changes
31+ shell : bash -l {0}
2932 run : |
33+ conda activate simopt
3034 git config --global user.name "github-actions[bot]"
3135 git config --global user.email "github-actions[bot]@users.noreply.github.com"
3236 git add docs/_build/html
You can’t perform that action at this time.
0 commit comments