Automate the Hugo release process
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Thu, 13 Apr 2017 14:59:05 +0000 (16:59 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Mon, 24 Apr 2017 10:35:39 +0000 (12:35 +0200)
commit550eba64705725eb54fdb1042e0fb4dbf6f29fd0
treee06bba6092e8944f69a9bbc68763192713d250f6
parent9bf5c381b6b3e69d4d8dbfd7a40074ac44792bbf
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
24 files changed:
.gitignore
commands/genman.go
commands/hugo.go
commands/release.go [new file with mode: 0644]
commands/version.go
docs/config.toml
docs/content/meta/release-notes.md [deleted file]
docs/content/release-notes/_index.md [new file with mode: 0644]
docs/content/release-notes/release-notes.md [new file with mode: 0644]
docs/layouts/section/release-notes.html [new file with mode: 0644]
goreleaser.yml [new file with mode: 0644]
helpers/general.go
helpers/hugo.go
helpers/hugo_test.go
hugolib/hugo_info.go
releaser/git.go [new file with mode: 0644]
releaser/git_test.go [new file with mode: 0644]
releaser/github.go [new file with mode: 0644]
releaser/github_test.go [new file with mode: 0644]
releaser/releasenotes_writer.go [new file with mode: 0644]
releaser/releasenotes_writer_test.go [new file with mode: 0644]
releaser/releaser.go [new file with mode: 0644]
releaser/releaser_test.go [new file with mode: 0644]
transform/hugogeneratorinject.go