Skip to content

Commit

Permalink
Move twine check to dedicated step (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
blink1073 authored Dec 31, 2024
1 parent 9f6497b commit af48d9c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions python/publish/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,18 @@ runs:
PRODUCT_NAME: ${{ inputs.product_name }}
DRY_RUN: ${{ inputs.dry_run }}
FOLLOWING_VERSION: ${{ inputs.following_version }}
- name: Check using twine
# TODO: remove as part of #62.
shell: bash
run: pipx run twine check dist/*.*
# https://packaging.python.org/en/latest/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/#publishing-the-distribution-to-pypi
- name: Publish distribution 📦 to PyPI
if: inputs.dry_run == 'false'
# Pinned due to https://github.com/pypa/gh-action-pypi-publish/issues/290
uses: pypa/[email protected]
with:
repository-url: ${{ inputs.repository_url }}
verify-metadata: false
- name: Do Not Publish distribution 📦 to PyPI on Dry Run
if: inputs.dry_run == 'true'
shell: bash
Expand Down

0 comments on commit af48d9c

Please sign in to comment.