Skip to content

Commit

Permalink
Fix release script
Browse files Browse the repository at this point in the history
  • Loading branch information
ayufan committed Jul 8, 2018
1 parent 6053020 commit ead4abd
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions do-release.bash
Original file line number Diff line number Diff line change
Expand Up @@ -60,24 +60,18 @@ make generate-versions > Makefile.versions.mk
cat Makefile.versions.mk

echo "Adding changes..."
git add RELEASE.md
git commit -m "Update RELEASE.md for $RELEASE"
git add RELEASE.md Makefile.versions.mk

echo "Creating tag..."
git add Makefile.versions.mk

echo "Committing $RELEASE..."
cat <<EOF | git tag -a $TAG_FLAGS -F -
cat <<EOF | git commit $COMMIT_FLAGS -F -
v$RELEASE
$(cat Makefile.versions.mk)
EOF

git tag "$RELEASE" $TAG_FLAGS

echo "Checking master again..."
git checkout "master"

echo "Pushing..."
git push origin "$RELEASE" $PUSH_FLAGS
git push origin master $PUSH_FLAGS
Expand Down

0 comments on commit ead4abd

Please sign in to comment.