1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-08 03:31:59 +02:00
goreleaser/www/content/snapshots.md
Carlos Alexandro Becker c8354d5ac9 docs: snapshots
closes #740
2018-12-13 12:11:12 -02:00

764 B

title series hideFromIndex weight
Snapshots customization true 70

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:

# .goreleaser.yml
snapshot:
  # Allows you to change the name of the generated snapshot
  # Default is `SNAPSHOT-{{.ShortCommit}}`.
  name_template: SNAPSHOT-{{.Commit}}

Learn more about the name template engine.

Note that the idea behind GoReleaser's snapshots if mostly for local builds or to validate your build on the CI pipeline. Artifacts shouldn't be uploaded anywhere, and will only be generated to the dist folder.