Skip to content

Commit b3148c7

Browse files
committed
Add option to not publish
1 parent bb34420 commit b3148c7

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

.github/workflows/publish.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,13 @@ name: Publish Quarto PyPi
55
on:
66
workflow_dispatch:
77
inputs:
8+
production:
9+
description: "Production (Use PyPi, not Test.PyPi)"
10+
required: false
11+
type: boolean
12+
default: false
813
publish-release:
9-
description: "Production Release"
14+
description: "Publish Release (to PyPi or Test.PyPi)"
1015
required: false
1116
type: boolean
1217
default: false
@@ -36,13 +41,18 @@ jobs:
3641
--user
3742
- name: Build
3843
run: python -m build
44+
- name: Upload wheels
45+
uses: actions/upload-artifact@v4
46+
with:
47+
name: wheel-files
48+
path: dist/*.whl
3949
- name: Clean Wheel
4050
run: rm -rf dist/quarto_cli*.whl
4151
- name: Publish package distributions to TestPyPI
4252
uses: pypa/gh-action-pypi-publish@release/v1
43-
if: ${{ ! inputs.publish-release }}
53+
if: ${{ inputs.publish-release && ! inputs.production }}
4454
with:
4555
repository-url: https://test.pypi.org/legacy/
4656
- name: Publish package distributions to PyPI
4757
uses: pypa/gh-action-pypi-publish@release/v1
48-
if: ${{ inputs.publish-release }}
58+
if: ${{ inputs.publish-release && inputs.production }}

0 commit comments

Comments
 (0)