2017-09-10 22:07:28 +02:00
|
|
|
---
|
|
|
|
title: Snapshots
|
|
|
|
---
|
|
|
|
|
2017-10-01 18:57:52 +02:00
|
|
|
Sometimes we want to generate a full build of our project,
|
|
|
|
but neither want to validate anything nor upload it to anywhere.
|
|
|
|
GoReleaser supports this with the `--snapshot` flag
|
|
|
|
and also with the `snapshot` customization section:
|
2017-09-10 22:07:28 +02:00
|
|
|
|
|
|
|
```yml
|
|
|
|
# .goreleaser.yml
|
|
|
|
snapshot:
|
|
|
|
# Allows you to change the name of the generated snapshot
|
|
|
|
# releases. The following variables are available:
|
|
|
|
# - Commit
|
|
|
|
# - Tag
|
|
|
|
# - Timestamp
|
2017-10-01 18:57:52 +02:00
|
|
|
# Default is `SNAPSHOT-{{.Commit}}`.
|
2017-09-10 22:07:28 +02:00
|
|
|
name_template: SNAPSHOT-{{.Commit}}
|
|
|
|
```
|