Skip to content

Commit 1f3d8ec

Browse files
committed
feat: add release script
1 parent caa2a47 commit 1f3d8ec

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

release.sh

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/bin/bash
2+
3+
# extract version from pyproject.toml
4+
VERSION=$(awk -F'=' '/^version/ {print $2}' pyproject.toml | tr -d ' "')
5+
6+
echo "Releasing version $VERSION"
7+
8+
# build the package
9+
make build
10+
11+
# create a new github tag
12+
git tag -a "v$VERSION" -m "release v$VERSION"
13+
14+
# push the tag to github
15+
git push origin "v$VERSION"
16+
17+
# publish the package to pypi
18+
make publish

0 commit comments

Comments
 (0)