diff --git a/README.rst b/README.rst index 230d914a..f604dfcf 100644 --- a/README.rst +++ b/README.rst @@ -1,4 +1,4 @@ -Webrecorder pywb 2.1 +Webrecorder pywb 2.2 ==================== .. image:: https://travis-ci.org/webrecorder/pywb.svg?branch=master diff --git a/update-version.sh b/update-version.sh index ec8f1087..8a9b7063 100755 --- a/update-version.sh +++ b/update-version.sh @@ -1,9 +1,16 @@ #!/bin/bash BASE=2.2 + NOW=$(date +%Y%m%d) -sed -i='' -E "s/(__version__ = ').*$/\1$BASE.$NOW'/" ./pywb/version.py -git tag v-$BASE.$NOW -git commit -m "version: update to $BASE.$NOW" ./pywb/version.py + +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 -git push origin v-$BASE.$NOW + +# Tag +git tag v-$TAG +git push origin v-$TAG