Skip to content

Commit b54cbbb

Browse files
authored
Merge pull request #213 from treyhunner/fix-release-for-real
Fix release for real
2 parents 2728b97 + 383edbc commit b54cbbb

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,17 @@ jobs:
3535
uses: salsify/action-detect-and-tag-new-version@v2.0.1
3636
with:
3737
version-command: |
38-
bash -o pipefail -c "uv version | awk '{ print \$2 }'"
38+
bash -o pipefail -c "grep '^version =' pyproject.toml | awk -F '\"' '{ print \$2 }'"
3939
4040
- name: Bump version for developmental release
4141
if: "! steps.check-version.outputs.tag"
4242
run: |
43-
uv version --bump patch &&
44-
version=$(uv version | awk '{ print $2 }') &&
45-
uv version "$version.dev$(date +%s)"
43+
current_version=$(grep '^version =' pyproject.toml | awk -F '"' '{ print $2 }')
44+
IFS='.' read -r major minor patch <<< "$current_version"
45+
new_patch=$((patch + 1))
46+
dev_version="${major}.${minor}.${new_patch}.dev$(date +%s)"
47+
sed -i "s/^version = .*/version = \"$dev_version\"/" pyproject.toml
48+
echo "Bumped version from $current_version to $dev_version"
4649
4750
- name: Build package
4851
run: |

0 commit comments

Comments
 (0)