Skip to content

Commit

Permalink
chore(release): v0.34.5
Browse files Browse the repository at this point in the history
  • Loading branch information
har7an committed Dec 15, 2022
1 parent 4f3df37 commit 1c6162b
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 22 deletions.
2 changes: 1 addition & 1 deletion xtask/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ edition = "2021"
[dependencies]
anyhow = "1.0"
lazy_static = "1.4"
xshell = "0.2.2"
xshell = "= 0.2.2"
xflags = "0.3.1"
which = "4.2"
toml = "0.5"
53 changes: 32 additions & 21 deletions xtask/src/pipelines.rs
Original file line number Diff line number Diff line change
Expand Up @@ -220,37 +220,48 @@ pub fn publish(sh: &Shell, flags: flags::Publish) -> anyhow::Result<()> {
.context(err_context)?;

// Commit changes
cmd!(sh, "git commit {dry_run...} -aem")
cmd!(sh, "git commit -aem")
.arg(format!("chore(release): v{}", version))
.run()
.context(err_context)?;

// Tag release
if !flags.dry_run {
cmd!(sh, "git tag --annotate --message")
.arg(format!("Version {}", version))
.arg(format!("v{}", version))
.run()
.context(err_context)?;
}
cmd!(sh, "git tag --annotate --message")
.arg(format!("Version {}", version))
.arg(format!("v{}", version))
.run()
.context(err_context)?;
}

// Push commit and tag
cmd!(sh, "git push {dry_run...} --atomic origin main v{version}")
.run()
.context(err_context)?;
let closure = || -> anyhow::Result<()> {
// Push commit and tag
cmd!(sh, "git push {dry_run...} --atomic origin main v{version}")
.run()
.context(err_context)?;

// Publish all the crates
for member in crate::WORKSPACE_MEMBERS.iter() {
if member.contains("plugin") {
continue;
// Publish all the crates
for member in crate::WORKSPACE_MEMBERS.iter() {
if member.contains("plugin") {
continue;
}

let _pd = sh.push_dir(project_dir.join(member));
cmd!(sh, "{cargo} publish {dry_run...}").run().context(err_context)?;
println!("Waiting for crates.io to catch up...");
std::thread::sleep(std::time::Duration::from_secs(15));
}
Ok(())
};

let _pd = sh.push_dir(project_dir.join(member));
cmd!(sh, "{cargo} publish {dry_run...}").run().context(err_context)?;
println!("Waiting for crates.io to catch up...");
std::thread::sleep(std::time::Duration::from_secs(15));
// We run this in a closure so that a failure in any of the commands doesn't abort the whole
// program. When dry-running we need to undo the release commit first!
let result = closure();

if flags.dry_run {
cmd!(sh, "git reset --hard HEAD~1")
.run()
.context(err_context)?;
}

Ok(())
result
}
Binary file modified zellij-utils/assets/plugins/compact-bar.wasm
100644 → 100755
Binary file not shown.
Binary file modified zellij-utils/assets/plugins/status-bar.wasm
100644 → 100755
Binary file not shown.
Binary file modified zellij-utils/assets/plugins/strider.wasm
100644 → 100755
Binary file not shown.
Binary file modified zellij-utils/assets/plugins/tab-bar.wasm
100644 → 100755
Binary file not shown.

0 comments on commit 1c6162b

Please sign in to comment.