1
0
mirror of https://github.com/webrecorder/pywb.git synced 2025-03-15 00:03:28 +01:00
pywb/update-version.sh
Ilya Kreymer 4b5c397992 readme: update for 2.2 release
version update: tweak script, ensure tag added after commit
2019-02-27 16:07:43 -08:00

17 lines
250 B
Bash
Executable File

#!/bin/bash
BASE=2.2
NOW=$(date +%Y%m%d)
TAG="$BASE.$NOW"
# Update
sed -i='' -E "s/(__version__ = ').*$/\1$TAG'/" ./pywb/version.py
git commit -m "version: update to $TAG" ./pywb/version.py
git push
# Tag
git tag v-$TAG
git push origin v-$TAG