ribesstefano commited on
Commit
840a9f3
1 Parent(s): d14c24b

Updated pages Action to install necessary dependences

Browse files
Files changed (1) hide show
  1. .github/workflows/gh-pages.yml +7 -1
.github/workflows/gh-pages.yml CHANGED
@@ -21,14 +21,20 @@ jobs:
21
  with:
22
  python-version: '3.x'
23
 
 
 
 
 
 
24
  - name: Install dependencies
25
  run: |
 
26
  pip install sphinx sphinx_rtd_theme
27
 
28
  - name: Build the documentation
29
  run: |
30
  sphinx-apidoc -o ./docs/source/ protac_degradation_predictor
31
- sphinx-build ./docs ./docs/_build/html
32
 
33
  - name: Deploy to GitHub Pages
34
  uses: peaceiris/actions-gh-pages@v3
 
21
  with:
22
  python-version: '3.x'
23
 
24
+ - name: Add conda to system path
25
+ run: |
26
+ # $CONDA is an environment variable pointing to the root of the miniconda directory
27
+ echo $CONDA/bin >> $GITHUB_PATH
28
+
29
  - name: Install dependencies
30
  run: |
31
+ conda env update --file environment.yml --name base
32
  pip install sphinx sphinx_rtd_theme
33
 
34
  - name: Build the documentation
35
  run: |
36
  sphinx-apidoc -o ./docs/source/ protac_degradation_predictor
37
+ sphinx-build -E ./docs ./docs/_build/html
38
 
39
  - name: Deploy to GitHub Pages
40
  uses: peaceiris/actions-gh-pages@v3