From 8f92ccde50d6a774f1d48526441f9af8fbef9fcd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Thu, 13 Apr 2017 16:59:05 +0200 Subject: [PATCH] Automate the Hugo release process This commit adds a work flow aroung GoReleaser to get the Hugo release process automated and more uniform: * It can be run fully automated or in two steps to allow for manual edits of the relase notes. * It supports both patch and full releases. * It fetches author, issue, repo info. etc. for the release notes from GitHub. * The file names produced are mainly the same as before, but we no use tar.gz as archive for all Unix versions. * There isn't a fully automated CI setup in place yet, but the release tag is marked in the commit message with "[ci deploy]" Fixes #3358 --- config.toml | 5 +++++ content/release-notes/_index.md | 8 ++++++++ content/{meta => release-notes}/release-notes.md | 8 ++------ layouts/section/release-notes.html | 6 ++++++ 4 files changed, 21 insertions(+), 6 deletions(-) create mode 100644 content/release-notes/_index.md rename content/{meta => release-notes}/release-notes.md (99%) create mode 100644 layouts/section/release-notes.html diff --git a/config.toml b/config.toml index 25288342b..8d91a66bd 100644 --- a/config.toml +++ b/config.toml @@ -45,6 +45,11 @@ pluralizeListTitles = false identifier = "about" pre = "" weight = -110 +[[menu.main]] + name = "Release Notes" + url = "/release-notes/" + pre = "" + weight = -111 [[menu.main]] name = "Getting Started" identifier = "getting started" diff --git a/content/release-notes/_index.md b/content/release-notes/_index.md new file mode 100644 index 000000000..3b934c69d --- /dev/null +++ b/content/release-notes/_index.md @@ -0,0 +1,8 @@ +--- +date: 2017-04-17 +aliases: +- /doc/release-notes/ +- /meta/release-notes/ +title: Release Notes +weight: 10 +--- diff --git a/content/meta/release-notes.md b/content/release-notes/release-notes.md similarity index 99% rename from content/meta/release-notes.md rename to content/release-notes/release-notes.md index af82d908a..7f962e318 100644 --- a/content/meta/release-notes.md +++ b/content/release-notes/release-notes.md @@ -2,12 +2,8 @@ aliases: - /doc/release-notes/ - /meta/release-notes/ -date: 2013-07-01 -menu: - main: - parent: about -title: Release Notes -weight: 10 +date: 2017-04-16 +title: Older Release Notes --- # **0.20.2** April 16th 2017 diff --git a/layouts/section/release-notes.html b/layouts/section/release-notes.html new file mode 100644 index 000000000..6af512603 --- /dev/null +++ b/layouts/section/release-notes.html @@ -0,0 +1,6 @@ +{{ define "main" }} +{{ range .Pages }} +

{{ .Title }} {{ .Date.Format "Jan 2, 2006" }}

+{{ .Content }} +{{ end }} +{{ end }} \ No newline at end of file