Skip to content

Commit 96cb64c

Browse files
committed
Push release tags after GoReleaser succeeds
1 parent a4e5921 commit 96cb64c

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

dev-bin/release.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,11 @@ $notes"
117117

118118
git tag -a -m "$message" "$tag"
119119

120-
git push --tags
121-
122120
# goreleaser's `--clean' should clear out `dist', but it didn't work for me.
123121
rm -rf dist
124-
goreleaser release --clean -f .goreleaser.yml --release-notes <(echo "$notes")
122+
if ! goreleaser release --clean -f .goreleaser.yml --release-notes <(echo "$notes"); then
123+
git tag -d "$tag"
124+
exit 1
125+
fi
126+
127+
git push --tags

0 commit comments

Comments
 (0)