Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,5 +100,7 @@ jobs:
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release view "$GITHUB_REF_NAME" --json assets -q '.assets[].name' | grep -qx checksums.txt ||
{ echo "::error::the release has no checksums.txt: the binaries went elsewhere" >&2; exit 1; }
top=$(git tag --sort=-v:refname | grep -E '^v[0-9]+\.[0-9]+\.[0-9]+$' | head -n 1 || true)
gh release edit "$GITHUB_REF_NAME" --draft=false --latest=$([ "$top" = "$GITHUB_REF_NAME" ] && echo true || echo false)
4 changes: 3 additions & 1 deletion .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,10 @@ signs:
signature: "${artifact}.sigstore.json"
args: ["sign-blob", "--yes", "--bundle=${signature}", "${artifact}"]

# The release, its notes and its publishing belong to release.yml.
# The release, its notes and its publishing belong to release.yml. GoReleaser
# finds that draft by name, so the name must be the one release.yml gives it.
release:
name_template: "light-tokenmeter {{ .Version }}"
draft: true
use_existing_draft: true
mode: keep-existing
Expand Down
Loading