xtask: Don't try to read ruma-macros changelog and only publish it

This commit is contained in:
Kévin Commaille 2024-05-09 12:13:40 +02:00 committed by Kévin Commaille
parent e08822fce1
commit 14d7ec42e7
2 changed files with 7 additions and 1 deletions

View File

@ -105,6 +105,11 @@ impl Package {
///
/// If `update` is `true`, update the changelog for the release of the given version.
pub fn changes(&self, update: bool) -> Result<String> {
if self.name == "ruma-macros" {
// ruma-macros doesn't have a changelog and won't create a tag.
return Ok(String::new());
}
let mut changelog_path = self.manifest_path.clone();
changelog_path.set_file_name("CHANGELOG.md");

View File

@ -67,7 +67,8 @@ impl ReleaseTask {
pub(crate) fn run(&mut self) -> Result<()> {
let title = &self.title();
let prerelease = !self.version.pre.is_empty();
let publish_only = self.package.name == "ruma-identifiers-validation";
let publish_only =
["ruma-identifiers-validation", "ruma-macros"].contains(&self.package.name.as_str());
println!(
"Starting {} for {title}…",