Add release script
This commit is contained in:
parent
2c75f23623
commit
0013328ff2
1 changed files with 17 additions and 0 deletions
17
do_release.sh
Executable file
17
do_release.sh
Executable file
|
|
@ -0,0 +1,17 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
[ $# -eq 1 ] || exit 2
|
||||||
|
|
||||||
|
VER="$1"
|
||||||
|
echo "Creating version $VER"
|
||||||
|
|
||||||
|
if [ -n "$(git diff --name-only --cached)" ]; then
|
||||||
|
echo "Stash or commit staged changes first"
|
||||||
|
exit 2
|
||||||
|
fi
|
||||||
|
|
||||||
|
sed -i "s/^\\(\\s*version\\s*=\\s*['\"]\\)[^'\"]*\\(['\"]\\s*,\\s*\\)$/\\1"$VER"\\2/" setup.py
|
||||||
|
git add setup.py
|
||||||
|
git commit -m "Version $VER" --no-edit
|
||||||
|
env QUBES_GPG_DOMAIN=gpg git -c gpg.program=qubes-gpg-client -c user.signingkey=E36F75307F0A0EC2D145FF5CED7A208EEEC76F2D -c user.email=python-mpv@jaseg.de tag -s "v$VER" -m "Version $VER"
|
||||||
|
git push --tags origin
|
||||||
Loading…
Add table
Add a link
Reference in a new issue