File tree 1 file changed +6
-3
lines changed
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -11,14 +11,16 @@ dist:
11
11
release : lock dist
12
12
# check that changelog is updated. only look at first 3 parts of semver
13
13
version=$(version )
14
- stripped=$$(echo $${version} | cut -d . -f -3 )
14
+ stripped=$$(echo $${version} | cut -d . -f -3 | cut -d '-' -f 1 )
15
15
if ! grep $$ {stripped} CHANGELOG.rst
16
16
then
17
17
echo " Changelog doesn't seem to be updated! Quitting..."
18
18
exit 1
19
19
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
20
23
twine upload -u __token__ dist/pykeepass-$(version ) *
21
- gh release create --latest --verify-tag v$(version ) dist/pykeepass-$(version ) *
22
24
23
25
.PHONY : lock
24
26
lock :
36
38
git add requirements.txt
37
39
git add pyproject.toml
38
40
git add CHANGELOG.rst
39
- git commit -m " bump version"
41
+ git commit -m " bump version" --allow-empty
40
42
git tag -a v$(version ) -m " version $( version) "
41
43
git push --tags
44
+ git push
42
45
43
46
.PHONY : docs
44
47
docs :
You can’t perform that action at this time.
0 commit comments