Skip to content

Commit 5e22ec9

Browse files
committed
Invalidate manifests.txt after updating it
This ensures that the file is *really* up to date.
1 parent 95f7395 commit 5e22ec9

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

src/main.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,7 @@ impl Context {
258258

259259
self.invalidate_releases()?;
260260
self.update_manifests_txt()?;
261+
self.invalidate_manifests_txt()?;
261262

262263
// Clean up after ourselves to avoid leaving gigabytes of artifacts
263264
// around.
@@ -604,6 +605,15 @@ impl Context {
604605
Ok(())
605606
}
606607

608+
fn invalidate_manifests_txt(&self) -> Result<(), Error> {
609+
let paths = ["manifests.txt"];
610+
611+
self.invalidate_cloudfront(&self.config.cloudfront_static_id, &paths)?;
612+
self.invalidate_fastly(&paths)?;
613+
614+
Ok(())
615+
}
616+
607617
fn invalidate_cloudfront(&self, distribution_id: &str, paths: &[String]) -> Result<(), Error> {
608618
if self.config.skip_cloudfront_invalidations {
609619
println!();

0 commit comments

Comments
 (0)