Skip to content

Commit b1201be

Browse files
committed
fix release
1 parent a14dc3d commit b1201be

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

scripts/release.sh

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,18 @@ fi
1616

1717
# Get the latest tag
1818
LATEST_TAG=$(git describe --tags --abbrev=0)
19+
VERSION=${LATEST_TAG#v}
20+
21+
# Update version in pyproject.toml
22+
sed -i "s/^version = \".*\"/version = \"${VERSION}\"/" pyproject.toml
23+
24+
# Commit the pyproject.toml change
25+
git add pyproject.toml
26+
git commit -m "chore: sync pyproject.toml version with tag ${LATEST_TAG}"
27+
git push origin main
1928

2029
# Create GitHub release
21-
echo "Creating GitHub release for ${LATEST_TAG}..."
30+
echo "Creating GitHub release..."
2231
gh release create "${LATEST_TAG}" \
2332
--title "Release ${LATEST_TAG}" \
2433
--generate-notes

0 commit comments

Comments
 (0)