Update the manual on release

This commit is contained in:
Aleksey Kladov 2020-02-14 18:36:42 +01:00
parent 9fc2748d47
commit 705f8820c9

View File

@ -166,7 +166,8 @@ pub fn run_release(dry_run: bool) -> Result<()> {
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 commit = run!("git rev-parse HEAD")?;
@ -195,5 +196,7 @@ pub fn run_release(dry_run: bool) -> Result<()> {
let path = changelog_dir.join(format!("{}-changelog-{}.adoc", today, changelog_n));
fs::write(&path, &contents)?;
fs::copy(project_root().join("./docs/user/readme.adoc"), website_root.join("manual.adoc"))?;
Ok(())
}