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:
2025-11-28 00:14:10 +01:00
parent ac521c38a8
commit dda99a63b1
3 changed files with 88 additions and 6 deletions
+48
View File
@@ -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}}"