Skip to content

Commit f6f0ad0

Browse files
committed
Fixing release.py for workflow
1 parent 12a4925 commit f6f0ad0

File tree

3 files changed

+4
-32
lines changed

3 files changed

+4
-32
lines changed

.github/workflows/python-publish.yml

Lines changed: 0 additions & 31 deletions
This file was deleted.

.github/workflows/scripts/release.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ def get_last_version() -> str:
2222
def bump_patch_number(version_number: str) -> str:
2323
"""Return a copy of `version_number` with the patch number incremented."""
2424
major, minor, patch = version_number.split(".")
25+
if '-' in patch:
26+
patch = patch.split('-')[0]
2527
return f"{major}.{minor}.{int(patch) + 1}"
2628

2729

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ dist
44
riscv_assembler.egg-info
55
build
66
.pytest_cache/
7-
__pycache__/
7+
__pycache__/
8+
deprc_setup.py

0 commit comments

Comments
 (0)