Skip to content
This repository has been archived by the owner on Feb 16, 2021. It is now read-only.

Commit

Permalink
release: Do not assume master branch
Browse files Browse the repository at this point in the history
  • Loading branch information
kemitchell committed Jan 8, 2020
1 parent 0b8b998 commit d98d8b4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion release
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ fi
set -ex

version="$1"
current="$(git rev-parse --abbrev-ref HEAD)"
branch="release-$version"
tag="v$version"
LICENSE=LICENSE.md
Expand All @@ -19,4 +20,4 @@ git commit -m "Version $version"
git tag "$tag"
git push origin "$branch"
git push origin "$tag"
git checkout master
git checkout "$current"

0 comments on commit d98d8b4

Please sign in to comment.