bump version 1.2.1

This commit is contained in:
Jörg Thalheim 2021-01-10 08:42:59 +01:00
parent 1e3b9977a7
commit dff7b0bfe9
No known key found for this signature in database
GPG key ID: 003F2096411B5F92
2 changed files with 25 additions and 1 deletions

24
scripts/create-release.sh Executable file
View file

@ -0,0 +1,24 @@
#!/usr/bin/env bash
set -eu -o pipefail
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
cd "$SCRIPT_DIR/.."
version=${1:-}
if [[ -z "$version" ]]; then
echo "USAGE: $0 version" 2>/dev/null
exit 1
fi
if [[ "$(git symbolic-ref --short HEAD)" != "master" ]]; then
echo "must be on master branch" 2>/dev/null
exit 1
fi
sed -i -e "s!nix-direnv/.*/direnvrc!nix-direnv/${version}/direnvrc!" README.md
git add README.md
git commit -m "bump version ${version}"
git tag -e "${version}"
echo "now run 'git push --tags origin master'"