xtask: Don't try to read ruma-macros changelog and only publish it
This commit is contained in:
parent
e08822fce1
commit
14d7ec42e7
@ -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");
|
||||
|
||||
|
@ -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}…",
|
||||
|
Loading…
x
Reference in New Issue
Block a user