xtask: Add a delay after publishing a macro crate
This commit is contained in:
parent
2a8b4a0478
commit
322edc551f
@ -1,4 +1,8 @@
|
||||
use std::path::{Path, PathBuf};
|
||||
use std::{
|
||||
path::{Path, PathBuf},
|
||||
thread::sleep,
|
||||
time::Duration,
|
||||
};
|
||||
|
||||
use isahc::{
|
||||
auth::{Authentication, Credentials},
|
||||
@ -69,6 +73,10 @@ impl ReleaseTask {
|
||||
print!("Found macros crate. ");
|
||||
let _dir = pushd(¯os.path)?;
|
||||
macros.publish(&self.client)?;
|
||||
|
||||
println!("Waiting 10 seconds for the release to make it into the crates.io index…");
|
||||
sleep(Duration::from_secs(10));
|
||||
|
||||
println!("Resuming release of {}…", self.title());
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user