2020-04-12 16:47:46 +02:00
|
|
|
---
|
|
|
|
title: Source Archive
|
|
|
|
---
|
|
|
|
|
|
|
|
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
|
2020-04-12 16:47:46 +02:00
|
|
|
# .goreleaser.yml
|
|
|
|
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'
|
|
|
|
```
|
|
|
|
|
2020-05-10 23:59:21 +02:00
|
|
|
!!! tip
|
|
|
|
Learn more about the [name template engine](/customization/templates).
|