There was an error while loading. Please reload this page.
1 parent cdda357 commit d397663Copy full SHA for d397663
1 file changed
.github/workflows/release.yml
@@ -1,8 +1,6 @@
1
name: Release
2
3
on:
4
- release:
5
- types: [published]
6
workflow_dispatch:
7
inputs:
8
use-testpypi:
@@ -34,7 +32,7 @@ jobs:
34
32
python -m build
35
33
36
- name: Verify version is final (production target only)
37
- if: ${{ !(github.event_name == 'workflow_dispatch' && inputs.use-testpypi) }}
+ if: ${{ !inputs.use-testpypi }}
38
run: |
39
VERSION=$(ls dist/*.tar.gz | sed -E 's|.*-(.*)\.tar\.gz|\1|')
40
echo "Built version: $VERSION"
@@ -45,5 +43,5 @@ jobs:
45
43
- name: Publish
46
44
uses: pypa/gh-action-pypi-publish@release/v1
47
with:
48
- repository-url: ${{ (github.event_name == 'workflow_dispatch' && inputs.use-testpypi) && 'https://test.pypi.org/legacy/' || '' }}
+ repository-url: ${{ inputs.use-testpypi && 'https://test.pypi.org/legacy/' || '' }}
49
skip-existing: true
0 commit comments