2021-10-30 14:50:23 +02:00
|
|
|
# Source Archive
|
2020-04-12 16:47:46 +02:00
|
|
|
|
|
|
|
You may add the current tag source archive to the release as well. This is particularly
|
|
|
|
useful if you want to sign it, for example.
|
|
|
|
|
2020-05-10 23:59:21 +02:00
|
|
|
```yaml
|
2021-12-23 02:52:01 +02:00
|
|
|
# .goreleaser.yaml
|
2020-04-12 16:47:46 +02:00
|
|
|
source:
|
|
|
|
# Whether this pipe is enabled or not.
|
|
|
|
# Defaults to `false`
|
|
|
|
enabled: true
|
|
|
|
|
|
|
|
# Name template of the final archive.
|
|
|
|
# Defaults to `{{ .ProjectName }}-{{ .Version }}`
|
|
|
|
name_template: '{{ .ProjectName }}'
|
|
|
|
|
|
|
|
# Format of the archive.
|
|
|
|
# Any format git-archive supports, this supports too.
|
|
|
|
# Defaults to `tar.gz`
|
|
|
|
format: 'tar'
|
2021-11-03 00:57:20 +02:00
|
|
|
|
|
|
|
# Prefix template.
|
|
|
|
# String to prepend to each filename in the archive.
|
|
|
|
# Defaults to empty
|
|
|
|
prefix_template: '{{ .ProjectName }}-{{ .Version }}/'
|
2022-08-25 06:10:26 +02:00
|
|
|
|
|
|
|
# Additional files/template/globs you want to add to the source archive.
|
|
|
|
# Will use --add-file of git-archive.
|
|
|
|
# Defaults to empty.
|
|
|
|
files:
|
|
|
|
- LICENSE.txt
|
|
|
|
- README_{{.Os}}.md
|
|
|
|
- CHANGELOG.md
|
|
|
|
- docs/*
|
|
|
|
- design/*.png
|
|
|
|
- templates/**/*
|
2020-04-12 16:47:46 +02:00
|
|
|
```
|
|
|
|
|
2020-05-10 23:59:21 +02:00
|
|
|
!!! tip
|
2020-11-19 22:31:26 +02:00
|
|
|
Learn more about the [name template engine](/customization/templates/).
|