From c5ed3b9f8321dd7b81bbbc16a46f33b4bef3db6e Mon Sep 17 00:00:00 2001 From: Crauzer <0xcrauzer@proton.me> Date: Sat, 3 Oct 2026 01:31:35 +0200 Subject: [PATCH] ci: keep table release as latest --- .github/workflows/release.yml | 4 ++-- release-plz.toml | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4ee2069..9b81eb9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -164,9 +164,9 @@ jobs: if gh release view "$tag" --repo "$GITHUB_REPOSITORY" >/dev/null 2>&1; then # Same-day re-run (e.g. --force): replace the existing assets in place. gh release upload "$tag" dist/* --repo "$GITHUB_REPOSITORY" --clobber - gh release edit "$tag" --repo "$GITHUB_REPOSITORY" --notes-file notes.md + gh release edit "$tag" --repo "$GITHUB_REPOSITORY" --latest --notes-file notes.md else - gh release create "$tag" dist/* --repo "$GITHUB_REPOSITORY" \ + gh release create "$tag" dist/* --repo "$GITHUB_REPOSITORY" --latest \ --title "Hash tables $version" --notes-file notes.md fi diff --git a/release-plz.toml b/release-plz.toml index 9c359ca..e1efd73 100644 --- a/release-plz.toml +++ b/release-plz.toml @@ -16,6 +16,9 @@ git_release_enable = true git_tag_name = "{{ package }}-v{{ version }}" git_release_name = "{{ package }} v{{ version }}" git_release_body = "{{ changelog }}" +# `releases/latest` is the download URL of the tables, so a crate release must +# never take it. +git_release_latest = false pr_labels = ["release"] [[package]]