Skip to content

Commit 44a5f66

Browse files
authored
Merge pull request #98 from Kobzol/web-workflow
Trigger website redeploy after a stable version is published
2 parents cad8128 + 68cc74c commit 44a5f66

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
@@ -271,6 +271,13 @@ impl Context {
271271
// important).
272272
self.tag_release(&rev, &mut signer)?;
273273

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

0 commit comments

Comments
 (0)