Add automated releases with binaries and simplify CI workflow
- Add GoReleaser configuration for Linux binaries (amd64, arm64) - Add release job to GitHub Actions for tagged versions - Remove github.server_url validations (Gitea CI disabled) - Update README with binary download instructions - Releases will include compiled binaries and changelogs
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
version: 2
|
||||
|
||||
before:
|
||||
hooks:
|
||||
- go mod tidy
|
||||
|
||||
builds:
|
||||
- id: apocapoc-api
|
||||
main: ./cmd/api
|
||||
binary: apocapoc-api
|
||||
env:
|
||||
- CGO_ENABLED=1
|
||||
goos:
|
||||
- linux
|
||||
goarch:
|
||||
- amd64
|
||||
- arm64
|
||||
ldflags:
|
||||
- -s -w
|
||||
|
||||
archives:
|
||||
- id: apocapoc-api
|
||||
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
|
||||
format: tar.gz
|
||||
files:
|
||||
- README.md
|
||||
- LICENSE
|
||||
|
||||
checksum:
|
||||
name_template: 'checksums.txt'
|
||||
|
||||
changelog:
|
||||
sort: asc
|
||||
filters:
|
||||
exclude:
|
||||
- '^docs:'
|
||||
- '^test:'
|
||||
- '^ci:'
|
||||
- Merge pull request
|
||||
- Merge branch
|
||||
|
||||
release:
|
||||
github:
|
||||
owner: davidfolch
|
||||
name: apocapoc-api
|
||||
draft: false
|
||||
prerelease: auto
|
||||
name_template: "{{.Tag}}"
|
||||
Reference in New Issue
Block a user