2020-06-02 00:08:19 +08:00
|
|
|
# Current steps for a release
|
2020-02-28 05:44:45 +08:00
|
|
|
|
2021-01-25 23:17:57 +08:00
|
|
|
1. ~~Update Version in main.go~~ (now set in package build)
|
2020-02-28 05:44:45 +08:00
|
|
|
2. Update CHANGELOG.md
|
2020-06-08 07:12:04 +08:00
|
|
|
3. Tag
|
|
|
|
4. Push everything
|
|
|
|
5. Wait for the github workflows to complete
|
|
|
|
6. Download and verify the correct version of one of the binaries
|
|
|
|
7. Finish the draft release and publish.
|
|
|
|
8. Check gotop-builder for a successful everything build; if successful, publish.
|
2020-11-19 16:32:23 +08:00
|
|
|
10. Wait for the [AUR](https://github.com/xxxserxxx/gotop-linux) project to finish building.
|
2021-01-26 04:08:29 +08:00
|
|
|
1. Update package versions in gotop and gotop-bin
|
|
|
|
2. namcap PKGBUILD
|
|
|
|
3. updpkgsums
|
|
|
|
4. makepkg --printsrcinfo > .SRCINFO
|
|
|
|
5. git commit -a
|
|
|
|
6. git push
|
|
|
|
7. Test install `gotop`, `gotop-bin`, and `gotop-git` with running & version check
|
2021-01-27 01:13:41 +08:00
|
|
|
|
2020-06-08 07:12:04 +08:00
|
|
|
11. Notify Nix
|
2020-06-09 22:03:58 +08:00
|
|
|
12. ~~Notify Homebrew~~ Automated now.
|
2020-03-02 23:09:17 +08:00
|
|
|
|
2020-06-02 00:08:19 +08:00
|
|
|
The AUR project still needs secret credentials to aurpublish to the AUR
|
|
|
|
repository, so the final publish step is still currently manual.
|
2020-03-02 23:09:17 +08:00
|
|
|
|
|
|
|
Oh, what a tangled web.
|
2020-03-03 19:47:52 +08:00
|
|
|
|
2021-01-27 01:13:41 +08:00
|
|
|
```
|
|
|
|
for p in builder nvidia remote; do
|
|
|
|
curl -H "Accept: application/vnd.github.everest-preview+json" \
|
|
|
|
-H "Authorization: token ${TOKEN}" \
|
|
|
|
--request POST \
|
|
|
|
--data "{'event_type': 'my-release', 'client_payload': {'tag': '${TAG}'}}" \
|
|
|
|
https://api.github.com/repos/xxxserxxx/gotop-${p}/dispatches
|
|
|
|
done
|
|
|
|
```
|
2020-03-03 19:47:52 +08:00
|
|
|
|
2020-06-02 00:08:19 +08:00
|
|
|
## Nix
|
|
|
|
|
|
|
|
I haven't yet figured this out, so currently just file a ticket and hope somebody on that end updates the package.
|
|
|
|
|
2020-03-03 19:47:52 +08:00
|
|
|
Nix adds new and interesting complexities to the release.
|
|
|
|
|
2020-04-16 21:14:13 +08:00
|
|
|
0. Download the gotop src package; run sha256 on it to get the hash
|
2020-03-03 19:47:52 +08:00
|
|
|
1. cd to the nixpkgs directory
|
2020-04-16 21:14:13 +08:00
|
|
|
2. Update the sha256 hash in `pkgs/tools/system/gotop/default.nix`
|
|
|
|
2. `docker run -it --rm --mount type=bind,source="\$(pwd)",target=/mnt nixos/nix sh`
|
|
|
|
3. `cd /mnt`
|
|
|
|
8. install & run vgo2nix to update deps.nix
|
|
|
|
7. `nix-build -A gotop`
|
2020-06-08 07:12:04 +08:00
|
|
|
8. When it fails, ...
|