File tree 1 file changed +13
-3
lines changed 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -5,8 +5,13 @@ name: Publish Quarto PyPi
5
5
on :
6
6
workflow_dispatch :
7
7
inputs :
8
+ production :
9
+ description : " Production (Use PyPi, not Test.PyPi)"
10
+ required : false
11
+ type : boolean
12
+ default : false
8
13
publish-release :
9
- description : " Production Release"
14
+ description : " Publish Release (to PyPi or Test.PyPi) "
10
15
required : false
11
16
type : boolean
12
17
default : false
@@ -36,13 +41,18 @@ jobs:
36
41
--user
37
42
- name : Build
38
43
run : python -m build
44
+ - name : Upload wheels
45
+ uses : actions/upload-artifact@v4
46
+ with :
47
+ name : wheel-files
48
+ path : dist/*.whl
39
49
- name : Clean Wheel
40
50
run : rm -rf dist/quarto_cli*.whl
41
51
- name : Publish package distributions to TestPyPI
42
52
uses : pypa/gh-action-pypi-publish@release/v1
43
- if : ${{ ! inputs.publish-release }}
53
+ if : ${{ inputs.publish-release && ! inputs.production }}
44
54
with :
45
55
repository-url : https://test.pypi.org/legacy/
46
56
- name : Publish package distributions to PyPI
47
57
uses : pypa/gh-action-pypi-publish@release/v1
48
- if : ${{ inputs.publish-release }}
58
+ if : ${{ inputs.publish-release && inputs.production }}
You can’t perform that action at this time.
0 commit comments