From db4eaa40fbf40d8a6492132b35e460f6dee96871 Mon Sep 17 00:00:00 2001 From: Jemmy Date: Wed, 17 Feb 2021 01:28:16 +0800 Subject: [PATCH] add config file for gorelease --- .goreleaser.yml | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .goreleaser.yml diff --git a/.goreleaser.yml b/.goreleaser.yml new file mode 100644 index 0000000..3429b2c --- /dev/null +++ b/.goreleaser.yml @@ -0,0 +1,39 @@ +# This is an example .goreleaser.yml file with some sane defaults. +# Make sure to check the documentation at http://goreleaser.com +before: + hooks: + # You may remove this if you don't use go modules. + # - go mod download + # you may remove this if you don't need go generate + # - go generate ./... +builds: + - env: + - CGO_ENABLED=0 + goos: + - linux + - windows + - darwin +archives: + - replacements: + darwin: Darwin + linux: Linux + windows: Windows + 386: i386 + amd64: x86_64 +checksum: + name_template: 'checksums.txt' +snapshot: + name_template: "{{ .Tag }}-next" +changelog: + sort: asc + filters: + exclude: + - '^docs:' + - '^test:' +env_files: + github_token: /Users/hujiaming/.ssh/tnote_github_token +github_urls: + api: https://github.com/JemmyH/tnote/ + upload: https://git.company.com/api/uploads/ + download: https://git.company.com/ + skip_tls_verify: false