mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-12 21:28:51 +00:00
Update the manual on release
This commit is contained in:
parent
9fc2748d47
commit
705f8820c9
1 changed files with 4 additions and 1 deletions
|
@ -166,7 +166,8 @@ pub fn run_release(dry_run: bool) -> Result<()> {
|
||||||
run!("git push")?;
|
run!("git push")?;
|
||||||
}
|
}
|
||||||
|
|
||||||
let changelog_dir = project_root().join("../rust-analyzer.github.io/thisweek/_posts");
|
let website_root = project_root().join("../rust-analyzer.github.io");
|
||||||
|
let changelog_dir = website_root.join("/thisweek/_posts");
|
||||||
|
|
||||||
let today = run!("date --iso")?;
|
let today = run!("date --iso")?;
|
||||||
let commit = run!("git rev-parse HEAD")?;
|
let commit = run!("git rev-parse HEAD")?;
|
||||||
|
@ -195,5 +196,7 @@ Release: release:{}[]
|
||||||
let path = changelog_dir.join(format!("{}-changelog-{}.adoc", today, changelog_n));
|
let path = changelog_dir.join(format!("{}-changelog-{}.adoc", today, changelog_n));
|
||||||
fs::write(&path, &contents)?;
|
fs::write(&path, &contents)?;
|
||||||
|
|
||||||
|
fs::copy(project_root().join("./docs/user/readme.adoc"), website_root.join("manual.adoc"))?;
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue