.goreleaser.yml 780 B

1234567891011121314151617181920212223242526272829303132333435
  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: ./cli
  8. env:
  9. - CGO_ENABLED=0
  10. goos:
  11. - windows
  12. - linux
  13. goarch:
  14. - amd64
  15. hooks:
  16. post: ./attach_webzip.sh dist/rufs_linux_amd64/rufs dist/rufs_windows_amd64/rufs.exe
  17. checksum:
  18. name_template: 'checksums.txt'
  19. archives:
  20. - files:
  21. - LICENSE
  22. - NOTICE
  23. - examples/**/*
  24. snapshot:
  25. name_template: "{{ .Tag }}"
  26. changelog:
  27. sort: asc
  28. filters:
  29. exclude:
  30. - '^docs:'
  31. - '^test:'
  32. # Run with:
  33. # mkdir .cache
  34. # 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