1.3 KiB
1.3 KiB
Current steps for a release:
gotop
- Update Version in main.go
- Update CHANGELOG.md
- Tag
- Push everything
- When the github workflows complete, finish the draft release and publish.
- Wait for the Homebrew and [AUR](https://github.com/xxxserxxx/gotop-linux] projects to finish building.
- check out gotop-linux and run
aurpublish aur
andaurpublish aur-bin
- update the hashes in the Nix package (see below), test build, push a pull request
- notify Homebrew
- check out gotop-linux and run
Homebrew is automatically updated. The AUR project still needs secret
credentials to aurpublish to the AUR repository, so the final publish step is
still currently manual.
Oh, what a tangled web.
Nix adds new and interesting complexities to the release.
- Download the gotop src package; run sha256 on it to get the hash
- cd to the nixpkgs directory
- Update the sha256 hash in
pkgs/tools/system/gotop/default.nix
docker run -it --rm --mount type=bind,source="\$(pwd)",target=/mnt nixos/nix sh
cd /mnt
- install & run vgo2nix to update deps.nix
nix-build -A gotop
- When it fails, copy the hash and update the
For plugin development:
V=$(git show -s --format=%cI HEAD | cut -b -19 | tr -cd '[:digit:]')-$(git rev-parse HEAD | cut -b -12)
go build -ldflags "-X main.Version=$V" -o gotop ./cmd/gotop