采用
GoReleaser是一个用于发布Go项目的工具,它可以帮助你快速、轻松地发布Go项目!
GoReleaser主要特性如下:
- Cross-compile your Go project
- Release to GitHub, GitLab and Gitea
- Create nightly builds
- Create Docker images and manifests
- Create Linux packages and Homebrew taps
- Sign artifacts, checksums and container images
- Announce new releases on Twitter, Slack, Discord and others
- Generate SBOMs (Software Bill of Materials) for binaries and container images
建议在编写.goreleaser.yml文件时,添加$schema字段,以便在编辑器中获得更好的提示:
# $schema: https://goreleaser.com/static/schema.json
version: 1
GoReleaser & Friends
- JReleaser: The quick and effortless way to release your Java project! https://jreleaser.org/
- cargo-dist: shippable application packaging for Rust https://github.com/axodotdev/cargo-dist
References
- GoReleaser: https://goreleaser.com/