release: details
This commit is contained in:
parent
cda8898019
commit
4928ceb91a
1 changed files with 5 additions and 5 deletions
|
@ -1,12 +1,12 @@
|
||||||
#!/bin/bash -eux
|
#!/bin/bash -eux
|
||||||
# ./docs/release.sh [patch|minor|major|x.y.z]
|
# ./docs/release.sh [patch|minor|major|x.y.z]
|
||||||
|
|
||||||
[[ $(basename $PWD) == docs ]] && cd ..
|
[[ $(basename "$PWD") == docs ]] && cd ..
|
||||||
|
|
||||||
|
|
||||||
OLD=$(poetry version -s)
|
OLD=$(poetry version -s)
|
||||||
|
|
||||||
poetry version $1
|
poetry version "$1"
|
||||||
|
|
||||||
NEW=$(poetry version -s)
|
NEW=$(poetry version -s)
|
||||||
DATE=$(date +%Y-%m-%d)
|
DATE=$(date +%Y-%m-%d)
|
||||||
|
@ -15,6 +15,6 @@ sed -i "/^## \[Unreleased\]/a \\\n## [$NEW] - $DATE" CHANGELOG.md
|
||||||
sed -i "/^\[Unreleased\]/s/$OLD/$NEW/" CHANGELOG.md
|
sed -i "/^\[Unreleased\]/s/$OLD/$NEW/" CHANGELOG.md
|
||||||
sed -i "/^\[Unreleased\]/a [$NEW] https://github.com/nim65s/matrix-webhook/compare/v$OLD...v$NEW" CHANGELOG.md
|
sed -i "/^\[Unreleased\]/a [$NEW] https://github.com/nim65s/matrix-webhook/compare/v$OLD...v$NEW" CHANGELOG.md
|
||||||
|
|
||||||
echo git add pyproject.toml CHANGELOG.md
|
git add pyproject.toml CHANGELOG.md
|
||||||
echo git commit -m "Release v$NEW"
|
git commit -m "Release v$NEW"
|
||||||
echo git tag -s "v$NEW" -m "Release v$NEW"
|
git tag -s "v$NEW" -m "Release v$NEW"
|
||||||
|
|
Loading…
Reference in a new issue