Skip to content

Commit

Permalink
deploy: fix bug in publish script
Browse files Browse the repository at this point in the history
  • Loading branch information
assafgi committed Nov 5, 2019
1 parent 51fcf76 commit 5b1ecbc
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,20 @@ then
exit 0
fi

git checkout master
git fetch -p
git reset --hard origin/master

# update CHANGELOG.md
new_header="## [$version] - $(date +'%Y-%m-%d')"
awk -v line="$new_header" '/Unreleased/ { print; printf "\n"; print line; next }1' CHANGELOG.md > tmpfile
mv tmpfile CHANGELOG.md

git checkout master
git fetch -p
git reset --hard origin/master
echo -n "$version" > VERSION

git add VERSION CHANGELOG.md
git commit -m "version $version"

git tag v"$version"
git push --set-upstream origin master
git push --tags

0 comments on commit 5b1ecbc

Please sign in to comment.