Update path of release announcement file

This commit is contained in:
Hanno Braun 2023-06-20 11:27:02 +02:00
parent 7c84f35106
commit 534cf12c6e

View File

@ -43,7 +43,7 @@ pub async fn create_release_announcement(
.await? .await?
.as_markdown(min_dollars, for_readme)?; .as_markdown(min_dollars, for_readme)?;
let mut file = create_file(year, &week).await?; let mut file = create_file(&version).await?;
generate_announcement( generate_announcement(
&week, &week,
date, date,
@ -57,9 +57,8 @@ pub async fn create_release_announcement(
Ok(()) Ok(())
} }
async fn create_file(year: i32, week: &str) -> anyhow::Result<File> { async fn create_file(version: &str) -> anyhow::Result<File> {
let dir = let dir = PathBuf::from(format!("content/blog/release/{version}"));
PathBuf::from(format!("content/blog/weekly-release/{year}-w{week}"));
let file = dir.join("index.md"); let file = dir.join("index.md");
// VS Code (and probably other editors/IDEs) renders the path in the output // VS Code (and probably other editors/IDEs) renders the path in the output