From e1849f1aa94c42f53643198fba7c652f3106e978 Mon Sep 17 00:00:00 2001 From: Carlos A Becker Date: Wed, 3 Aug 2022 15:07:38 -0300 Subject: [PATCH] docs: sync with pro Signed-off-by: Carlos A Becker --- www/docs/customization/archive.md | 25 +++++++++++++++++++++++++ www/docs/customization/fury.md | 7 ++++++- www/docs/pro.md | 3 ++- 3 files changed, 33 insertions(+), 2 deletions(-) diff --git a/www/docs/customization/archive.md b/www/docs/customization/archive.md index 01645bd88e3..b5e8f9980d4 100644 --- a/www/docs/customization/archive.md +++ b/www/docs/customization/archive.md @@ -89,11 +89,36 @@ archives: # format is `time.RFC3339Nano` mtime: 2008-01-02T15:04:05Z + # Before and after hooks for each archive. + # Skipped if archive format is binary. + # This feature is available in [GoReleaser Pro](/pro) only. + hooks: + before: + - make clean # simple string + - cmd: go generate ./... # specify cmd + - cmd: go mod tidy + output: true # always prints command output + dir: ./submodule # specify command working directory + - cmd: touch {{ .Env.FILE_TO_TOUCH }} + env: + - 'FILE_TO_TOUCH=something-{{ .ProjectName }}' # specify hook level environment variables + + after: + - make clean + - cmd: cat *.yaml + dir: ./submodule + - cmd: touch {{ .Env.RELEASE_DONE }} + env: + - 'RELEASE_DONE=something-{{ .ProjectName }}' # specify hook level environment variables + # Disables the binary count check. # Default: false allow_different_binary_count: true ``` +!!! success "GoReleaser Pro" + Archive hooks is a [GoReleaser Pro feature](/pro/). + !!! tip Learn more about the [name template engine](/customization/templates/). diff --git a/www/docs/customization/fury.md b/www/docs/customization/fury.md index 42db555960e..720abf942d0 100644 --- a/www/docs/customization/fury.md +++ b/www/docs/customization/fury.md @@ -31,7 +31,12 @@ furies: - # fury.io account. # Config is skipped if empty - account: my-account + account: "{{ .Env.FURY_ACCOUNT }}" + + # Skip the announcing feature in some conditions, for instance, when publishing patch releases. + # Valid options are `true`, `false`, empty, or a template that evaluates to a boolean (`true` or `false`). + # Defaults to empty - which means false. + skip: "{{gt .Patch 0}}" # Environment variable name to get the push token from. # You might want to change it if you have multiple fury configurations for some reason. diff --git a/www/docs/pro.md b/www/docs/pro.md index 6f6931ac53e..0132c5d9525 100644 --- a/www/docs/pro.md +++ b/www/docs/pro.md @@ -2,6 +2,7 @@ GoReleaser Pro is a paid, closed-source GoReleaser distribution with some additional features: +- [x] Have custom [before and after hooks for achives](/customization/archive/); - [x] Prepare a release with [`goreleaser release --prepare`](/cmd/goreleaser_release/), publish and announce it later with [`goreleaser publish`](/cmd/goreleaser_publish/) and [`goreleaser announce`](/cmd/goreleaser_announce/); - [x] Preview and test your next release's changelog with [`goreleaser changelog`](/cmd/goreleaser_changelog/); - [x] Continuously release [nightly builds](/customization/nightlies/); @@ -18,7 +19,7 @@ GoReleaser Pro is a paid, closed-source GoReleaser distribution with some additi ## Roadmap -The roadmap is not public (yet), but we do have a couple of ideas and your input is always welcome! +The roadmap is not public (yet), but we do have a couple of ideas, and your input is always welcome! Once you buy it, feel free to [email me](mailto:carlos@becker.software?subject=GoReleaser%20Feature%20Suggestion) with your suggestions. ## Pricing & Sponsors