diff options
author | Aleksey Kladov <[email protected]> | 2020-02-14 17:36:42 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-02-14 17:42:48 +0000 |
commit | 705f8820c93277768ddc38a743b1ce02a97a9750 (patch) | |
tree | b44618b86640a1a103ed0594ad27c1773530a4ec /xtask/src | |
parent | 9fc2748d476066675dddaf54dfc6c6a8b5e5f450 (diff) |
Update the manual on release
Diffstat (limited to 'xtask/src')
-rw-r--r-- | xtask/src/lib.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/xtask/src/lib.rs b/xtask/src/lib.rs index 301a88324..4050f9d01 100644 --- a/xtask/src/lib.rs +++ b/xtask/src/lib.rs | |||
@@ -166,7 +166,8 @@ pub fn run_release(dry_run: bool) -> Result<()> { | |||
166 | run!("git push")?; | 166 | run!("git push")?; |
167 | } | 167 | } |
168 | 168 | ||
169 | let changelog_dir = project_root().join("../rust-analyzer.github.io/thisweek/_posts"); | 169 | let website_root = project_root().join("../rust-analyzer.github.io"); |
170 | let changelog_dir = website_root.join("/thisweek/_posts"); | ||
170 | 171 | ||
171 | let today = run!("date --iso")?; | 172 | let today = run!("date --iso")?; |
172 | let commit = run!("git rev-parse HEAD")?; | 173 | let commit = run!("git rev-parse HEAD")?; |
@@ -195,5 +196,7 @@ Release: release:{}[] | |||
195 | let path = changelog_dir.join(format!("{}-changelog-{}.adoc", today, changelog_n)); | 196 | let path = changelog_dir.join(format!("{}-changelog-{}.adoc", today, changelog_n)); |
196 | fs::write(&path, &contents)?; | 197 | fs::write(&path, &contents)?; |
197 | 198 | ||
199 | fs::copy(project_root().join("./docs/user/readme.adoc"), website_root.join("manual.adoc"))?; | ||
200 | |||
198 | Ok(()) | 201 | Ok(()) |
199 | } | 202 | } |