Release
Release version $ARGUMENTS.
- •If no version argument is provided, check the latest tag with
git tag --sort=-v:refname | head -1and suggest the next patch bump. - •Confirm the working tree is clean (
git status --porcelain). If not, stop and tell the user. - •Run
goreleaser checkto validate the config. - •Run
goreleaser release --snapshot --skip=publish --cleanto do a dry run. If it fails, stop. - •Create the tag:
git tag $ARGUMENTS - •Push the tag:
git push origin $ARGUMENTS - •Print a link to the GitHub Actions run:
gh run list --workflow=release.yml --limit=1 - •Tell the user goreleaser will build and attach binaries automatically.