diff --git a/.gitignore b/.gitignore index 5a87e4e..7cf5941 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ -edge-connect \ No newline at end of file +edge-connect +# Added by goreleaser init: +dist/ diff --git a/.goreleaser.yaml b/.goreleaser.yaml new file mode 100644 index 0000000..4126908 --- /dev/null +++ b/.goreleaser.yaml @@ -0,0 +1,97 @@ +# This is an example .goreleaser.yml file with some sensible defaults. +# Make sure to check the documentation at https://goreleaser.com + +# The lines below are called `modelines`. See `:help modeline` +# Feel free to remove those if you don't want/need to use them. +# yaml-language-server: $schema=https://goreleaser.com/static/schema.json +# vim: set ts=2 sw=2 tw=0 fo=cnqoj + +version: 2 + +before: + hooks: + # You may remove this if you don't use go modules. + - go mod tidy + # you may remove this if you don't need go generate + - go generate ./... + +builds: + - env: + - CGO_ENABLED=0 + goos: + - linux + - darwin + - windows + goarch: + - amd64 + - arm64 + +archives: + - formats: [tar.gz] + # this name template makes the OS and Arch compatible with the results of `uname`. + name_template: >- + {{ .ProjectName }}_ + {{- title .Os }}_ + {{- if eq .Arch "amd64" }}x86_64 + {{- else if eq .Arch "386" }}i386 + {{- else }}{{ .Arch }}{{ end }} + {{- if .Arm }}v{{ .Arm }}{{ end }} + # use zip for windows archives + format_overrides: + - goos: windows + formats: [zip] + +changelog: + sort: asc + filters: + exclude: + - "^docs:" + - "^test:" + +release: + footer: >- + + --- + + Released by [GoReleaser](https://github.com/goreleaser/goreleaser). + + gitea: + owner: DevFW-CICD + name: edge-connect-client + + # IDs of the artifacts to use. + #ids: + # - foo + # - bar + + # You can change the name of the release. + # + # Default: '{{.Tag}}' ('{{.PrefixedTag}}' on Pro). + # Templates: allowed. + name_template: "{{.ProjectName}}-v{{.Version}} {{.Env.USER}}" + + # You can disable this pipe in order to not upload any artifacts. + disable: false + + # What to do with the release notes in case there the release already exists. + # + # Valid options are: + # - `keep-existing`: keep the existing notes + # - `append`: append the current release notes to the existing notes + # - `prepend`: prepend the current release notes to the existing notes + # - `replace`: replace existing notes + # + # Default: 'keep-existing'. + mode: append + + # You can add extra pre-existing files to the release. + # The filename on the release will be the last part of the path (base). + # If another file with the same name exists, the last one found will be used. + # + # Templates: allowed. + #extra_files: + #- glob: ./path/to/file.txt + #- glob: ./glob/**/to/**/file/**/* + #- glob: ./glob/foo/to/bar/file/foobar/override_from_previous + #- glob: ./single_file.txt + # name_template: file.txt # note that this only works if glob matches 1 file only \ No newline at end of file