File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,14 +11,16 @@ dist:
1111release : 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
2426lock :
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
4447docs :
You can’t perform that action at this time.
0 commit comments