Skip to content

Commit e11fb1c

Browse files
committed
Update configuration
Modified: • .github/workflows/publish-wheels.yml (+5/-2 lines) [gitship-generated]
1 parent 6b82b71 commit e11fb1c

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

.github/workflows/publish-wheels.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ on:
44
workflow_dispatch:
55
inputs:
66
tag:
7-
description: 'Tag to publish (e.g. v3.3.1)'
8-
required: true
7+
description: 'Tag to publish (e.g. v3.3.1) or branch/SHA to test'
8+
required: false
9+
default: 'HEAD'
910

1011
permissions:
1112
contents: write
@@ -242,14 +243,16 @@ jobs:
242243
run: ls -lh dist/
243244

244245
- name: Upload to GitHub Release
246+
if: startsWith(inputs.tag, 'v')
245247
uses: softprops/action-gh-release@v2
246248
with:
247249
tag_name: ${{ inputs.tag }}
248250
files: dist/*.whl
249251
fail_on_unmatched_files: false
250252

251253
- name: Publish to PyPI
254+
if: startsWith(inputs.tag, 'v')
252255
uses: pypa/gh-action-pypi-publish@release/v1
253256
with:
254257
packages-dir: dist/
255-
skip-existing: true
258+
skip-existing: true

0 commit comments

Comments
 (0)