aboutsummaryrefslogtreecommitdiff
path: root/xtask/src/release.rs
diff options
context:
space:
mode:
Diffstat (limited to 'xtask/src/release.rs')
-rw-r--r--xtask/src/release.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/xtask/src/release.rs b/xtask/src/release.rs
index 46992c1ca..d2d769099 100644
--- a/xtask/src/release.rs
+++ b/xtask/src/release.rs
@@ -69,3 +69,16 @@ Release: release:{}[]
69 Ok(()) 69 Ok(())
70 } 70 }
71} 71}
72
73pub struct PromoteCmd {
74 pub dry_run: bool,
75}
76
77impl PromoteCmd {
78 pub fn run(self) -> Result<()> {
79 run!("git switch release")?;
80 run!("git fetch upstream")?;
81 run!("git reset --hard upstream/release")?;
82 Ok(())
83 }
84}