Skip to content

Commit

Permalink
chore: add release script
Browse files Browse the repository at this point in the history
  • Loading branch information
queensferryme committed Aug 13, 2021
1 parent cecef9f commit 94c4fd9
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions scripts/release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/bash

prev_version=$(poetry version --short)
poetry version $1
version=$(poetry version --short)

sed -i'.save' "s/$prev_version/$version/g" flake8_too_many/checker.py
rm flake8_too_many/checker.py.save

git diff HEAD

printf "The current release version is $version.\n"
printf "Press [y/n] to proceed: "
read yn
case $yn in
[Yy]* )
git add --all
git commit -v
git tag $version;;
* ) exit;;
esac

0 comments on commit 94c4fd9

Please sign in to comment.