1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-22 04:08:49 +02:00
goreleaser/www/content/checksum.md

26 lines
704 B
Markdown
Raw Normal View History

2017-09-10 17:07:28 -03:00
---
title: Checksum
series: customization
hideFromIndex: true
weight: 50
2017-09-10 17:07:28 -03:00
---
GoReleaser generates a `project_1.0.0_checksums.txt` file and uploads it with the
release, so your users can validate if the downloaded files are correct.
2017-09-10 17:07:28 -03:00
The `checksum` section allows customizations of the filename:
2017-09-10 17:07:28 -03:00
```yml
# .goreleaser.yml
checksum:
# You can change the name of the checksums file.
# This is parsed with the Go template engine and the following variables
2017-09-10 17:07:28 -03:00
# are available:
# - ProjectName
# - Tag
# - Version (Git tag without `v` prefix)
# - Env (environment variables)
# Default is `{{ .ProjectName }}_{{ .Version }}_checksums.txt`.
2017-09-10 17:07:28 -03:00
name_template: "{{ .ProjectName }}_checksums.txt"
```