-
-
Notifications
You must be signed in to change notification settings - Fork 363
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9cf9401
commit 0509b1b
Showing
2 changed files
with
30 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euo pipefail | ||
|
||
if [[ -z "${GPG_FINGERPRINT}" ]]; then | ||
echo "GPG_FINGERPRINT environment variable is not set" | ||
exit 1 | ||
fi | ||
|
||
echo "Syncing repo with latest main..." | ||
git checkout main | ||
git pull | ||
|
||
VERSION=$(sed -n -E 's/^const Version = "([0-9]+\.[0-9]+\.[0-9]+)"$/\1/p' cmd/version.go) | ||
TAG_NAME="v${VERSION}" | ||
|
||
echo "Verify release can be built..." | ||
goreleaser --skip=publish --snapshot --clean | ||
|
||
echo "Pushing tag..." | ||
git tag -a "${TAG_NAME}" -m "Release ${TAG_NAME}" | ||
git push origin "${TAG_NAME}" | ||
|
||
echo "Tag pushed" | ||
echo "The release CI workflow will automatically create a draft release." | ||
echo "Once created, edit the release notes and publish it." |