Skip to content

Commit 68cc74c

Browse files
committed
Trigger website redeploy after a stable version is published
1 parent c71b4de commit 68cc74c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/main.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,13 @@ impl Context {
273273
// important).
274274
self.tag_release(&rev, &mut signer)?;
275275

276+
// Redeploy the website to reload the new stable version
277+
if let Some(mut github) = self.config.github() {
278+
github
279+
.token("rust-lang/www.rust-lang.org")?
280+
.workflow_dispatch("main.yml", "main")?;
281+
}
282+
276283
Ok(())
277284
}
278285

0 commit comments

Comments
 (0)