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
7 changes: 5 additions & 2 deletions .github/workflows/release-plz.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,12 @@ jobs:
*) echo "::error::crates.io returned HTTP $http_status for $crate"; exit 1 ;;
esac
echo "$crate: local=$local_version registry=$registry_version"
# A crate that has never been published is the worst partial-
# publish case (everything downstream of it is blocked), so
# publish it here rather than skipping: `cargo publish` handles
# first publishes fine.
if [[ -z "$registry_version" ]]; then
echo "::warning::$crate not on crates.io yet — first publish must come from a release-plz run"
continue
echo "::notice::$crate not on crates.io yet — publishing for the first time"
fi
if [[ "$local_version" == "$registry_version" ]]; then
continue
Expand Down
14 changes: 13 additions & 1 deletion release-plz.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,15 @@ git_release_name = "v{{ version }}"
# is a no-op; any whose local version is ahead gets published. Partial
# publishes self-heal on the next merge instead of jamming the pipeline.
release_always = true
git_tag_enable = true
# Tags are off by default and enabled only for the `vestige` binary crate
# (see the [[package]] override at the bottom). Every crate shares the one
# `v{{ version }}` tag name, so with tagging on for all of them the first
# crate published created the tag and the second failed with "Reference
# already exists", aborting the release after one or two crates (v0.5.0 and
# v0.6.0 both jammed this way). `vestige` publishes last, so the tag — and
# the cargo-dist + Homebrew workflows it triggers — now fires only once the
# whole chain is on crates.io.
git_tag_enable = false
# cargo-dist owns the GitHub Release (it builds binaries and attaches them
# in the same job that creates the release). release-plz just pushes the tag;
# the release.yml workflow takes over from the tag.
Expand Down Expand Up @@ -51,3 +59,7 @@ commit_parsers = [
{ message = "^ci", skip = true },
{ message = "^style", skip = true },
]

[[package]]
name = "vestige"
git_tag_enable = true
Loading