Skip to content

Commit f1309c4

Browse files
authored
feat: enhance versioning in CD workflow by using last tag for minor bump (#4)
1 parent 578caa5 commit f1309c4

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/cd.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ jobs:
4949
shell: bash
5050
run: |
5151
if [ -z "${VERSION}" ] || [ "${VERSION}" = "None" ]; then
52+
LAST_TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "0.0.0")
53+
uv version ${LAST_TAG}
5254
uv version --bump minor
5355
VERSION=$(uv version --short)
5456
echo "VERSION=${VERSION}" >> "${GITHUB_ENV:-/dev/null}"

0 commit comments

Comments
 (0)