feat: add go releaser config
Some checks failed
Release / release (push) Failing after 1m39s

This commit is contained in:
cdryzun 2023-09-23 19:16:13 +08:00
parent 05f507f655
commit dde043817e
2 changed files with 34 additions and 1 deletions

View File

@ -11,7 +11,7 @@ jobs:
- uses: actions/setup-go@v3 - uses: actions/setup-go@v3
with: { go-version: 1.20 } with: { go-version: 1.20 }
- run: go install github.com/go-task/task/v3/cmd/task@latest - run: go install github.com/go-task/task/v3/cmd/task@latest
- run: apt update && apt-get install zip # - run: apt update && apt-get install zip
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- run: task deps - run: task deps
- run: git reset --hard - run: git reset --hard

33
.goreleaser.yml Normal file
View File

@ -0,0 +1,33 @@
# Goreleaser configuration
# for building binaries and packages for distributions and releasing on github
gitea_urls:
api: https://git.treesir.pub/api/v1
download: https://git.treesir.pub
# set to true if you use a self-signed certificate
skip_tls_verify: false
dist: bin
builds:
- binary: devops-sing
env:
- CGO_ENABLED=0
main: main.go
goos:
- darwin
- linux
- freebsd
goarch:
- amd64
ignore:
- goos: darwin
goarch: 386
# archives:
# -
# format_overrides:
# - goos: windows
# format: zip
# files:
# - LICENSE
# - config.json.template