.goreleaser.yml 696 B

123456789101112131415161718192021222324252627282930313233
  1. # This is an example goreleaser.yaml file with some sane defaults.
  2. # Make sure to check the documentation at http://goreleaser.com
  3. before:
  4. hooks:
  5. - go mod download
  6. builds:
  7. - main: ./server/dudeldu.go
  8. env:
  9. - CGO_ENABLED=0
  10. goos:
  11. - windows
  12. - linux
  13. goarch:
  14. - amd64
  15. checksum:
  16. name_template: 'checksums.txt'
  17. archives:
  18. - files:
  19. - LICENSE
  20. - NOTICE
  21. - examples/**/*
  22. snapshot:
  23. name_template: "{{ .Tag }}"
  24. changelog:
  25. sort: asc
  26. filters:
  27. exclude:
  28. - '^docs:'
  29. - '^test:'
  30. # Run with:
  31. # mkdir .cache
  32. # docker run --rm --user $(id -u):$(id -g) -v $PWD/.cache:/.cache -v $PWD:/go/code -w /go/code goreleaser/goreleaser --snapshot --skip-publish --rm-dist