From 41f6d9ba93a4bccb7b12212984dad36e29381e32 Mon Sep 17 00:00:00 2001 From: Carlos Alexandro Becker Date: Wed, 23 Sep 2020 21:20:56 -0300 Subject: [PATCH] docs: created a cookbooks section Signed-off-by: Carlos Alexandro Becker --- www/docs/cookbooks/index.md | 5 +++++ www/docs/cookbooks/semantic-release.md | 12 ++++++++++++ www/mkdocs.yml | 3 +++ 3 files changed, 20 insertions(+) create mode 100644 www/docs/cookbooks/index.md create mode 100644 www/docs/cookbooks/semantic-release.md diff --git a/www/docs/cookbooks/index.md b/www/docs/cookbooks/index.md new file mode 100644 index 000000000..fae46f33a --- /dev/null +++ b/www/docs/cookbooks/index.md @@ -0,0 +1,5 @@ +# Cookbooks + +The idea here is to add examples of how to do specific things with GoReleaser. + +Feel free to contribute yours! diff --git a/www/docs/cookbooks/semantic-release.md b/www/docs/cookbooks/semantic-release.md new file mode 100644 index 000000000..50cd1fae0 --- /dev/null +++ b/www/docs/cookbooks/semantic-release.md @@ -0,0 +1,12 @@ +# Semantic Release + +GoReleaser does not create any tags, it just runs on what is already there. + +You can, though, leverage other tools to do the work for you, like for example +[svu](https://github.com/caarlos0/svu): + +```bash +git tag "$(svu next)" +git push --tags +goreleaser --rm-dist +``` diff --git a/www/mkdocs.yml b/www/mkdocs.yml index b32f07ad1..ca12fa104 100644 --- a/www/mkdocs.yml +++ b/www/mkdocs.yml @@ -83,6 +83,9 @@ nav: - deprecations.md - sponsors.md - contributing.md +- Cookbooks: + - About: cookbooks/index.md + - cookbooks/semantic-release.md - tutorials.md - links.md