Skip to content

Commit

Permalink
docs: sync with pro
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
  • Loading branch information
caarlos0 committed Aug 3, 2022
1 parent 06d0ce0 commit e1849f1
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 2 deletions.
25 changes: 25 additions & 0 deletions www/docs/customization/archive.md
Expand Up @@ -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/).

Expand Down
7 changes: 6 additions & 1 deletion www/docs/customization/fury.md
Expand Up @@ -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.
Expand Down
3 changes: 2 additions & 1 deletion www/docs/pro.md
Expand Up @@ -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/);
Expand All @@ -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
Expand Down

0 comments on commit e1849f1

Please sign in to comment.