3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-11-22 03:49:27 +01:00

Merge pull request #1834 from slingamn/goreleaser

fix #1833
This commit is contained in:
Shivaram Lingamneni 2021-11-16 19:17:50 -05:00 committed by GitHub
commit 208a6706c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 7 deletions

View File

@ -5,29 +5,37 @@ builds:
- main: ergo.go - main: ergo.go
binary: ergo binary: ergo
goos: goos:
- freebsd - linux
- windows - windows
- darwin - darwin
- linux - freebsd
- openbsd
- plan9
goarch: goarch:
- "386"
- amd64 - amd64
- arm - arm
- arm64 - arm64
goarm: goarm:
- 6 - 6
- 7
ignore: ignore:
- goos: windows - goos: windows
goarch: arm goarch: arm
- goos: windows
goarch: arm64
- goos: darwin - goos: darwin
goarch: arm goarch: arm
- goos: darwin
goarch: 386
- goos: freebsd - goos: freebsd
goarch: arm goarch: arm
- goos: freebsd - goos: freebsd
goarch: arm64 goarch: arm64
- goos: openbsd
goarch: arm
- goos: openbsd
goarch: arm64
- goos: plan9
goarch: arm
- goos: plan9
goarch: arm64
flags: flags:
- -trimpath - -trimpath
@ -44,6 +52,7 @@ archives:
files: files:
- README - README
- CHANGELOG.md - CHANGELOG.md
- LICENSE
- ergo.motd - ergo.motd
- default.yaml - default.yaml
- traditional.yaml - traditional.yaml

View File

@ -43,9 +43,10 @@ Ergo vendors all dependencies using `go mod vendor`. To update a dependency, or
1. Commit the new changelog and constants change. 1. Commit the new changelog and constants change.
1. Tag the release with `git tag --sign v0.0.0 -m "Release v0.0.0"` (`0.0.0` replaced with the real ver number). 1. Tag the release with `git tag --sign v0.0.0 -m "Release v0.0.0"` (`0.0.0` replaced with the real ver number).
1. Build binaries using `make release` 1. Build binaries using `make release`
1. Sign the checksums file with `gpg --detach-sig --default-key`
1. Smoke-test a built binary locally 1. Smoke-test a built binary locally
1. Point of no return: `git push origin master --tags` (this publishes the tag; any fixes after this will require a new point release) 1. Point of no return: `git push origin master --tags` (this publishes the tag; any fixes after this will require a new point release)
1. Publish the release on GitHub (Releases -> "Draft a new release"); use the new tag, post the changelog entries, upload the binaries 1. Publish the release on GitHub (Releases -> "Draft a new release"); use the new tag, post the changelog entries, upload the binaries, the checksums file, and the signature of the checksums file
1. Update the `irctest_stable` branch with the new changes (this may be a force push). 1. Update the `irctest_stable` branch with the new changes (this may be a force push).
1. If it's a production release (as opposed to a release candidate), update the `stable` branch with the new changes. (This may be a force push in the event that stable contained a backport. This is fine because all stable releases and release candidates are tagged.) 1. If it's a production release (as opposed to a release candidate), update the `stable` branch with the new changes. (This may be a force push in the event that stable contained a backport. This is fine because all stable releases and release candidates are tagged.)
1. Similarly, for a production release, update the `irctest_stable` branch (this is the branch used by upstream irctest to integration-test against Ergo). 1. Similarly, for a production release, update the `irctest_stable` branch (this is the branch used by upstream irctest to integration-test against Ergo).