File tree Expand file tree Collapse file tree 1 file changed +83
-0
lines changed Expand file tree Collapse file tree 1 file changed +83
-0
lines changed Original file line number Diff line number Diff line change 1+ name : nm publish whl
2+ run-name : ${{ github.actor }} publishing whl on branch '${{ github.ref}}'
3+ on :
4+ workflow_dispatch :
5+ inputs :
6+ label :
7+ description : " requested runner label (specifies instance)"
8+ type : string
9+ required : true
10+ timeout :
11+ description : " time limit for run in minutes "
12+ type : string
13+ required : true
14+ gitref :
15+ description : ' git commit hash or branch name'
16+ type : string
17+ required : true
18+ python :
19+ description : " python version, e.g. 3.10.12"
20+ type : string
21+ required : true
22+ whl :
23+ description : " whl to test (variable appears late binding so unusable outside 'download artifact')"
24+ type : string
25+ required : true
26+ tarfile :
27+ description : " source distribution (variable appears late binding so unusable outside 'download artifact')"
28+ type : string
29+ required : true
30+
31+ workflow_call :
32+ inputs :
33+ label :
34+ description : " requested runner label (specifies instance)"
35+ type : string
36+ required : true
37+ timeout :
38+ description : " time limit for run in minutes "
39+ type : string
40+ required : true
41+ gitref :
42+ description : ' git commit hash or branch name'
43+ type : string
44+ required : true
45+ python :
46+ description : " python version, e.g. 3.10.12"
47+ type : string
48+ required : true
49+ whl :
50+ description : " whl to test (variable appears late binding so unusable outside 'download artifact')"
51+ type : string
52+ required : true
53+ tarfile :
54+ description : " source distribution (variable appears late binding so unusable outside 'download artifact')"
55+ type : string
56+ required : true
57+
58+ jobs :
59+
60+ PUBLISH :
61+ runs-on : ${{ inputs.label }}
62+ timeout-minutes : ${{ fromJson(inputs.timeout) }}
63+
64+ steps :
65+
66+ - name : checkout
67+ id : checkout
68+ uses : actions/checkout@v4
69+ with :
70+ fetch-depth : 0
71+ ref : ${{ inputs.gitref }}
72+ submodules : recursive
73+
74+ - name : setenv
75+ id : setenv
76+ uses : ./.github/actions/nm-set-env/
77+
78+ - name : set python
79+ id : set_python
80+ uses : ./.github/actions/nm-set-python/
81+ with :
82+ python : ${{ inputs.python }}
83+ venv : UPLOAD
You can’t perform that action at this time.
0 commit comments