File tree Expand file tree Collapse file tree 2 files changed +6
-8
lines changed
Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change 11name : Publish to PyPI
22
33on :
4- release :
5- types : [published]
64 workflow_dispatch :
75 inputs :
86 environment :
1715jobs :
1816 publish :
1917 runs-on : ubuntu-latest
20- environment :
21- name : ${{ github.event_name == 'release' && 'pypi' || github. event.inputs.environment }}
22- url : ${{ github.event_name == 'release ' && 'https://pypi.org/p/wav2aug' || 'https://test.pypi.org/p/wav2aug' }}
18+ environment :
19+ name : ${{ github.event.inputs.environment }}
20+ url : ${{ github.event.inputs.environment == 'pypi ' && 'https://pypi.org/p/wav2aug' || 'https://test.pypi.org/p/wav2aug' }}
2321 permissions :
2422 id-token : write
2523 contents : read
@@ -39,14 +37,14 @@ jobs:
3937 run : uv build
4038
4139 - name : Publish to Test PyPI
42- if : github.event_name == 'workflow_dispatch' && github. event.inputs.environment == 'testpypi'
40+ if : github.event.inputs.environment == 'testpypi'
4341 uses : pypa/gh-action-pypi-publish@release/v1
4442 with :
4543 repository-url : https://test.pypi.org/legacy/
4644 verbose : true
4745
4846 - name : Publish to PyPI
49- if : github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && github. event.inputs.environment == 'pypi')
47+ if : github.event.inputs.environment == 'pypi'
5048 uses : pypa/gh-action-pypi-publish@release/v1
5149 with :
5250 verbose : true
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44
55[project ]
66name = " wav2aug"
7- version = " 0.0.3 "
7+ version = " 0.0.4 "
88description = " A general purpose speech augmentation policy"
99readme = " readme.md"
1010requires-python = " >=3.10"
You can’t perform that action at this time.
0 commit comments