fix release

This commit is contained in:
Guilhem Saurel
2024-03-09 00:30:28 +01:00
parent 0045056a33
commit 11564bb642
2 changed files with 6 additions and 5 deletions

View File

@@ -5,10 +5,11 @@ To trigger it, we just need to:
1. use poetry to update the version number 1. use poetry to update the version number
2. update the changelog 2. update the changelog
3. git commit 3. update version number in flake.nix
4. git tag 4. git commit
5. git push 5. git tag
6. git push --tags 6. git push
7. git push --tags
For this, an helper script is provided: For this, an helper script is provided:

View File

@@ -14,7 +14,7 @@ DATE=$(date +%Y-%m-%d)
sed -i "/^## \[Unreleased\]/a \\\n## [v$NEW] - $DATE" CHANGELOG.md sed -i "/^## \[Unreleased\]/a \\\n## [v$NEW] - $DATE" CHANGELOG.md
sed -i "/^\[Unreleased\]/s/$OLD/$NEW/" CHANGELOG.md sed -i "/^\[Unreleased\]/s/$OLD/$NEW/" CHANGELOG.md
sed -i "/^\[Unreleased\]/a [v$NEW]: https://github.com/nim65s/matrix-webhook/compare/v$OLD...v$NEW" CHANGELOG.md sed -i "/^\[Unreleased\]/a [v$NEW]: https://github.com/nim65s/matrix-webhook/compare/v$OLD...v$NEW" CHANGELOG.md
sed -i "/version/$OLD/$NEW/" flake.nix sed -i "/version/s/$OLD/$NEW/" flake.nix
git add pyproject.toml CHANGELOG.md git add pyproject.toml CHANGELOG.md
git commit -m "Release v$NEW" git commit -m "Release v$NEW"