Skip to content

Commit

Permalink
Fixing release.py for workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
kcelebi committed Apr 9, 2023
1 parent 12a4925 commit f6f0ad0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 32 deletions.
31 changes: 0 additions & 31 deletions .github/workflows/python-publish.yml

This file was deleted.

2 changes: 2 additions & 0 deletions .github/workflows/scripts/release.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ def get_last_version() -> str:
def bump_patch_number(version_number: str) -> str:
"""Return a copy of `version_number` with the patch number incremented."""
major, minor, patch = version_number.split(".")
if '-' in patch:
patch = patch.split('-')[0]
return f"{major}.{minor}.{int(patch) + 1}"


Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ dist
riscv_assembler.egg-info
build
.pytest_cache/
__pycache__/
__pycache__/
deprc_setup.py

0 comments on commit f6f0ad0

Please sign in to comment.