mirror of
https://github.com/nix-community/nix-direnv.git
synced 2025-11-08 11:36:11 +01:00
bump version 1.2.1
This commit is contained in:
parent
1e3b9977a7
commit
dff7b0bfe9
2 changed files with 25 additions and 1 deletions
24
scripts/create-release.sh
Executable file
24
scripts/create-release.sh
Executable 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'"
|
||||
Loading…
Add table
Add a link
Reference in a new issue