Skip to content

Commit

Permalink
docs: schema update
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 21, 2022
1 parent f81e32b commit 94ed9e9
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 5 deletions.
27 changes: 22 additions & 5 deletions www/docs/customization/nightlies.md
Expand Up @@ -16,8 +16,25 @@ nightly:
#
# Note that some pipes require this to be semantic version compliant (nfpm, for example).
#
# Default is `{{ incpatch .Version }}-{{ .ShortCommit }}-dev`.
# Default is `{{ incpatch .Version }}-{{ .ShortCommit }}-nightly`.
name_template: '{{ incpatch .Version }}-devel'

# Tag name to create if publish_release is enabled.
#
# Default is `nightly`
tag_name: devel

# Whether to publish a release or not.
# Only works on GitHub.
#
# Default is `false`.
publish_release: true

# Whether to delete previous pre-releases for the same `tag_name` when releasing.
# This allows you to keep a single pre-release.
#
# Default is `false`.
keep_single_release: true
```

## How it works
Expand All @@ -31,17 +48,17 @@ This means that if you use `{{ .Version }}` on your name templates, you'll get t
## What is skipped when using `--nightly`?

- Go mod proxying;
- GitHub/GitLab/Gitea releases;
- GitHub/GitLab/Gitea releases (unless specified);
- Homebrew taps;
- Scoop manifests;
- Arch User Repositories;
- GoFish Rigs;
- Krew Plugin Manifests;
- Milestone closing;
- All announcers;

Everything else is executed normally. Just make sure to use the `Version` template variable instead of `Tag`.
You can also check if its a nightly build inside a template with:
Everything else is executed normally.
Just make sure to use the `Version` template variable instead of `Tag`.
You can also check if it is a nightly build inside a template with:

```
{{ if .IsNightly }}something{{ else }}something else{{ end }}
Expand Down
9 changes: 9 additions & 0 deletions www/docs/static/schema-pro.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 94ed9e9

Please sign in to comment.