Skip to content

Commit

Permalink
ci: PLT-550: Dry run twine upload (#6616)
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitabelonogov authored Nov 8, 2024
1 parent b3fb7c7 commit c54fd69
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ on:
description: "Upload to PyPi"
type: boolean
required: false
default: false
release-id:
description: "Attach Artifact to Release"
type: string
Expand All @@ -39,8 +40,8 @@ on:
upload_to_pypi:
description: "Upload to PyPi"
type: boolean
default: false
required: false
default: false
release-id:
description: "Attach Artifact to Release"
type: string
Expand Down Expand Up @@ -138,11 +139,10 @@ jobs:
run: poetry build

- name: Upload to PYPI
if: inputs.upload_to_pypi
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_APIKEY }}
run: poetry run twine upload dist/*
run: poetry run twine upload ${{ inputs.upload_to_pypi == false && '--dry-run' || '' }} dist/*

- name: Get PyPI package details
id: pypi-package-details
Expand Down

0 comments on commit c54fd69

Please sign in to comment.