Skip to content

Commit b8cc009

Browse files
authored
Update release workflow (#757)
1 parent 8a1aef0 commit b8cc009

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ on:
1818
type: choice
1919
required: false
2020
options:
21+
- ""
2122
- "alpha"
2223
- "beta"
2324
- "rc"
@@ -45,16 +46,14 @@ jobs:
4546
run: uv run make clean format typecheck test
4647

4748
- name: Bump Version
48-
id: bump_version
4949
shell: bash
50-
if: inputs.version != '-s' && inputs.prerelease
51-
run: echo "ABC" && uvx hatch version ${{ inputs.version }},${{ inputs.prerelease }}
50+
if: inputs.version != '-s' && inputs.prerelease != ''
51+
run: uvx hatch version ${{ inputs.version }},${{ inputs.prerelease }}
5252

5353
- name: Bump Version
54-
id: bump_version
5554
shell: bash
56-
if: inputs.version != '-s' && !inputs.prerelease
57-
run: echo "DEF" && uvx hatch version ${{ inputs.version }}
55+
if: inputs.version != '-s' && inputs.prerelease == ''
56+
run: uvx hatch version ${{ inputs.version }}
5857

5958
- name: Set Version
6059
id: set_version

0 commit comments

Comments
 (0)