We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b82b71 commit e11fb1cCopy full SHA for e11fb1c
1 file changed
.github/workflows/publish-wheels.yml
@@ -4,8 +4,9 @@ on:
4
workflow_dispatch:
5
inputs:
6
tag:
7
- description: 'Tag to publish (e.g. v3.3.1)'
8
- required: true
+ description: 'Tag to publish (e.g. v3.3.1) or branch/SHA to test'
+ required: false
9
+ default: 'HEAD'
10
11
permissions:
12
contents: write
@@ -242,14 +243,16 @@ jobs:
242
243
run: ls -lh dist/
244
245
- name: Upload to GitHub Release
246
+ if: startsWith(inputs.tag, 'v')
247
uses: softprops/action-gh-release@v2
248
with:
249
tag_name: ${{ inputs.tag }}
250
files: dist/*.whl
251
fail_on_unmatched_files: false
252
253
- name: Publish to PyPI
254
255
uses: pypa/gh-action-pypi-publish@release/v1
256
257
packages-dir: dist/
- skip-existing: true
258
+ skip-existing: true
0 commit comments