Skip to content
This repository has been archived by the owner on Dec 7, 2023. It is now read-only.

Commit

Permalink
Force-push the tags, and add extra newline
Browse files Browse the repository at this point in the history
  • Loading branch information
luxas committed Aug 6, 2019
1 parent a15fb8e commit d742080
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
4 changes: 2 additions & 2 deletions hack/minor-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@ push_artifacts() {
cat <<- EOF
Done! Next, do this:
git push upstream --tags
git push upstream --tags -f
git push upstream ${RELEASE_BRANCH}
git push upstream master
EOF
exit 1
fi
git push upstream --tags
git push upstream --tags -f
git push upstream ${RELEASE_BRANCH}
git push upstream master
}
Expand Down
4 changes: 2 additions & 2 deletions hack/patch-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,12 @@ push_artifacts() {
cat <<- EOF
Done! Next, do this:
git push upstream --tags
git push upstream --tags -f
git push upstream ${RELEASE_BRANCH}
EOF
exit 1
fi
git push upstream --tags
git push upstream --tags -f
git push upstream ${RELEASE_BRANCH}
}

Expand Down
7 changes: 5 additions & 2 deletions hack/release-common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,14 @@ write_changelog() {
# Generate the changelog draft
if [[ ! -f docs/releases/${FULL_VERSION}.md ]]; then
# Push the tag provisionally, we'll later update it
git tag ${FULL_VERSION}
git push upstream --tags
echo "Tagging the current commit ${FULL_VERSION} temporarily in order to run gren..."
git tag -f ${FULL_VERSION}
git push upstream --tags -f

run_gren "changelog --generate"
mv docs/releases/next.md docs/releases/${FULL_VERSION}.md
# Add an extra newline in the end of the changelog
echo "" >> docs/releases/${FULL_VERSION}.md
fi

read -p "Please manually fixup the changelog file now. Continue? [y/N] " confirm
Expand Down

0 comments on commit d742080

Please sign in to comment.