File tree Expand file tree Collapse file tree 2 files changed +20
-4
lines changed Expand file tree Collapse file tree 2 files changed +20
-4
lines changed Original file line number Diff line number Diff line change @@ -26,18 +26,25 @@ jobs:
26
26
uses : mamba-org/setup-micromamba@v1
27
27
with :
28
28
environment-file : environment.yaml
29
+ environment-name : docs
30
+ create-args : >-
31
+ python=3.9
32
+ sphinx
33
+ sphinxcontrib-serializinghtml
34
+ setuptools
29
35
30
36
- name : Safe workflow for build preview
31
37
run : if [ -d "_build" ]; then rm -rf _build; fi
32
38
33
39
- name : Build page and Translations
34
40
if : contains(github.event.comment.body, '#preview')
35
41
run : |
42
+ micromamba activate docs
43
+ python -c "import imghdr" # Check if imghdr is available
36
44
make gettext html
37
45
38
46
- name : Create nojekyll file
39
- run : |
40
- touch _build/.nojekyll
47
+ run : touch _build/.nojekyll
41
48
42
49
- name : Deploy documentation sphinx
43
50
uses : JamesIves/github-pages-deploy-action@v4.6.1
55
62
with :
56
63
issue-number : ${{github.event.issue.number}}
57
64
body : " This PR has been built with Sphinx and can be previewed at: https://fortran-lang.github.io/fpm/pr/${{github.event.issue.number}}"
65
+
Original file line number Diff line number Diff line change 28
28
uses : mamba-org/setup-micromamba@v1
29
29
with :
30
30
environment-file : environment.yaml
31
-
32
- - name : Build pages
31
+ environment-name : docs
32
+ create-args : >-
33
+ python=3.9
34
+ sphinx
35
+ sphinxcontrib-serializinghtml
36
+ setuptools
37
+
38
+ - name : Activate environment and build pages
33
39
run : |
40
+ micromamba activate docs
41
+ python -c "import imghdr"
34
42
make gettext html
35
43
36
44
- name : Create nojekyll file
You can’t perform that action at this time.
0 commit comments