File tree 5 files changed +50
-343
lines changed
5 files changed +50
-343
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 13
13
default : ' '
14
14
required : false
15
15
type : string
16
+ platform :
17
+ default : ' ubuntu-22.04'
18
+ type : string
16
19
workflow_call :
17
20
inputs :
18
21
publish :
22
25
default : ' '
23
26
required : false
24
27
type : string
28
+ platform :
29
+ default : ' ubuntu-22.04'
30
+ type : string
31
+
32
+ defaults :
33
+ run :
34
+ shell : bash -l {0} # required for conda env
25
35
26
36
env :
27
37
VERSION : ${{ inputs.version }}
28
38
JUPYTER_PLATFORM_DIRS : 1
29
39
30
40
jobs :
31
41
docs :
32
- name : Build documentation
33
- runs-on : ' ubuntu-22.04 '
42
+ name : Documentation
43
+ runs-on : ${{ inputs.platform }}
34
44
35
45
steps :
36
46
- uses : actions/checkout@v3
@@ -44,24 +54,21 @@ jobs:
44
54
micromamba-version : 1.1.0
45
55
environment-file : environment.yml
46
56
cache-env : true
47
- extra-specs : |
48
- python=${{ matrix.python-version }}
49
- conda-build
50
57
51
58
- run : conda develop src
52
59
- run : jupyter --paths
53
- - run : python docs/make_docs.py --build-dir=html
60
+ - run : python docs/make_docs.py --build-dir=html_${{ inputs.platform }}
54
61
55
62
- uses : actions/upload-artifact@v3
56
63
with :
57
- name : DocumentationHTML
58
- path : html
64
+ name : html_${{ inputs.platform }}
65
+ path : html_${{ inputs.platform }}
59
66
60
67
-
uses :
JamesIves/[email protected]
61
- if : ${{ inputs.publish }} && ${{ contains(matrix.os , 'ubuntu') }}
68
+ if : ${{ inputs.publish && contains(inputs.platform , 'ubuntu') }}
62
69
with :
63
70
branch : gh-pages
64
- folder : html
71
+ folder : html_${{ inputs.platform }}
65
72
target-folder : ${{ env.target }}
66
73
single-commit : true
67
74
clean-exclude : release
You can’t perform that action at this time.
0 commit comments