Skip to content

Commit

Permalink
Add option to not publish
Browse files Browse the repository at this point in the history
  • Loading branch information
dragonstyle committed Jan 23, 2024
1 parent bb34420 commit f5c8fda
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,13 @@ name: Publish Quarto PyPi
on:
workflow_dispatch:
inputs:
production:
description: "Production"
required: false
type: boolean
default: false
publish-release:
description: "Production Release"
description: "Publish Release"
required: false
type: boolean
default: false
Expand Down Expand Up @@ -40,9 +45,14 @@ jobs:
run: rm -rf dist/quarto_cli*.whl
- name: Publish package distributions to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
if: ${{ ! inputs.publish-release }}
if: ${{ inputs.publish-release && ! inputs.production }}
with:
repository-url: https://test.pypi.org/legacy/
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
if: ${{ inputs.publish-release }}
if: ${{ inputs.publish-release && inputs.production }}
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: wheel-files
path: dist/*.whl

0 comments on commit f5c8fda

Please sign in to comment.