Skip to content

Commit

Permalink
release: details
Browse files Browse the repository at this point in the history
  • Loading branch information
nim65s committed Aug 27, 2021
1 parent cda8898 commit 4928ceb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/release.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#!/bin/bash -eux
# ./docs/release.sh [patch|minor|major|x.y.z]

[[ $(basename $PWD) == docs ]] && cd ..
[[ $(basename "$PWD") == docs ]] && cd ..


OLD=$(poetry version -s)

poetry version $1
poetry version "$1"

NEW=$(poetry version -s)
DATE=$(date +%Y-%m-%d)
Expand All @@ -15,6 +15,6 @@ sed -i "/^## \[Unreleased\]/a \\\n## [$NEW] - $DATE" 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

echo git add pyproject.toml CHANGELOG.md
echo git commit -m "Release v$NEW"
echo git tag -s "v$NEW" -m "Release v$NEW"
git add pyproject.toml CHANGELOG.md
git commit -m "Release v$NEW"
git tag -s "v$NEW" -m "Release v$NEW"

0 comments on commit 4928ceb

Please sign in to comment.