releases: Add build number to Nightly builds (#42990)
- **Remove semantic_version crate and use semver instead** - **Update upload-nightly** Release Notes: - N/A --------- Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
This commit is contained in:
co-authored by
Conrad Irwin
parent
a0fa5d57c1
commit
2d55c088cc
@@ -71,10 +71,14 @@ pub fn run(command: Commands) -> anyhow::Result<()> {
|
||||
println!("{}", env!("ZED_PKG_VERSION"))
|
||||
}
|
||||
ReleaseChannel::Nightly | ReleaseChannel::Dev => {
|
||||
println!(
|
||||
"{}",
|
||||
option_env!("ZED_COMMIT_SHA").unwrap_or(release_channel.dev_name())
|
||||
)
|
||||
let commit_sha =
|
||||
option_env!("ZED_COMMIT_SHA").unwrap_or(release_channel.dev_name());
|
||||
let build_id = option_env!("ZED_BUILD_ID");
|
||||
if let Some(build_id) = build_id {
|
||||
println!("{}+{}", build_id, commit_sha)
|
||||
} else {
|
||||
println!("{commit_sha}");
|
||||
}
|
||||
}
|
||||
};
|
||||
Ok(())
|
||||
|
||||
Reference in New Issue
Block a user