Skip to content

Commit 321c653

Browse files
committed
also push branch after bumping version
1 parent 86312e9 commit 321c653

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Makefile

+6-3
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,16 @@ dist:
1111
release: lock dist
1212
# check that changelog is updated. only look at first 3 parts of semver
1313
version=$(version)
14-
stripped=$$(echo $${version} | cut -d . -f -3)
14+
stripped=$$(echo $${version} | cut -d . -f -3 | cut -d '-' -f 1)
1515
if ! grep $${stripped} CHANGELOG.rst
1616
then
1717
echo "Changelog doesn't seem to be updated! Quitting..."
1818
exit 1
1919
fi
20+
# generate release notes from changelog
21+
awk "/---/{next}; /^$${stripped}/{next}; {print} ; /^$$/{exit}" CHANGELOG.rst > TMPNOTES
22+
gh release create --latest --verify-tag v$(version) dist/pykeepass-$(version)* -F TMPNOTES
2023
twine upload -u __token__ dist/pykeepass-$(version)*
21-
gh release create --latest --verify-tag v$(version) dist/pykeepass-$(version)*
2224

2325
.PHONY: lock
2426
lock:
@@ -36,9 +38,10 @@ tag:
3638
git add requirements.txt
3739
git add pyproject.toml
3840
git add CHANGELOG.rst
39-
git commit -m "bump version"
41+
git commit -m "bump version" --allow-empty
4042
git tag -a v$(version) -m "version $(version)"
4143
git push --tags
44+
git push
4245

4346
.PHONY: docs
4447
docs:

0 commit comments

Comments
 (0)