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]]