mirror of
https://github.com/hannobraun/Fornjot
synced 2025-01-31 12:25:54 +00:00
Update path of release announcement file
This commit is contained in:
parent
7c84f35106
commit
534cf12c6e
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user