GH: minor fix in publish.yml

This commit is contained in:
MischaPanch authored and Michael Panchenko committed 2025-07-21 15:25:43 +02:00
1 parent 8b3b2fe433
commit 0b479d6936
1 file changed
+8 -1
+8 -1
View File
@@ -4,6 +4,12 @@ on:
release:
types: [created]
workflow_dispatch:
inputs:
tag:
description: 'Tag name for the release (e.g., v0.1.0)'
required: true
default: 'v0.1.0'
env:
# Set this to true manually in the GitHub workflow UI if you want to publish to PyPI
@@ -17,7 +23,7 @@ jobs:
permissions:
id-token: write # Required for trusted publishing
contents: read
contents: write # Required for updating artifact
steps:
- name: Checkout code
@@ -35,6 +41,7 @@ jobs:
if: env.PUBLISH_TO_PYPI == 'true'
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ github.event.inputs.tag || github.ref_name }}
files: |
dist/*.tar.gz
dist/*.whl