From 5590679cb4cc4dcd6ccb4694780eda38326bc4c5 Mon Sep 17 00:00:00 2001 From: "Sean E. Russell" Date: Sun, 7 Jun 2020 18:12:04 -0500 Subject: [PATCH] Trying to get the workflow working. --- .github/workflows/release.yml | 18 ------------------ README.md | 2 +- docs/releasing.md | 24 ++++++++++-------------- 3 files changed, 11 insertions(+), 33 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c2129916..3b697e55 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -44,21 +44,3 @@ jobs: repository: xxxserxxx/gotop-builder event-type: my-release client-payload: '{"tag": "${{ steps.tag_name.outputs.tag }}"}' - - - name: Update current release badge - shell: bash - run: sed -i "s/v[0-9]*\.[0-9]*\.[0-9]*/${{steps.tag_name.outputs.tag}}/g" docs/release.svg - - - name: Commit current release badge - uses: stefanzweifel/git-auto-commit-action@v4.1.0 - with: - branch: 'master' - commit_message: Update release badge to version "${{ steps.tag_name.outputs.tag }}" - - # Optional glob pattern of files which should be added to the commit - file_pattern: docs/release.svg - - # Optional commit user and author settings - commit_user_name: Badge Updater - commit_user_email: ser@ser1.net - commit_author: Badge Updater diff --git a/README.md b/README.md index 17e2b05e..3fd939f2 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ Join us in [\#gotop:matrix.org](https://riot.im/app/#/room/#gotop:matrix.org) ([ ![](https://github.com/xxxserxxx/gotop/workflows/Build%20Go%20binaries/badge.svg) ![](https://github.com/xxxserxxx/gotop/workflows/Create%20pre-release/badge.svg) -
Current release: v4.0.0
+
Current release: v4.0.0
See the [mini-blog](https://github.com/xxxserxxx/gotop/wiki/Micro-Blog) for updates on the build status, and the [change log](/CHANGELOG.md) for release updates. diff --git a/docs/releasing.md b/docs/releasing.md index d71f1fa2..77040974 100644 --- a/docs/releasing.md +++ b/docs/releasing.md @@ -2,13 +2,16 @@ 1. Update Version in main.go 2. Update CHANGELOG.md -4. Tag -5. Push everything -6. When the github workflows complete, finish the draft release and publish. -7. Wait for the [AUR](https://github.com/xxxserxxx/gotop-linux] project to finish building. +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. +10. Wait for the [AUR](https://github.com/xxxserxxx/gotop-linux] project to finish building. 1. update arch (gotop-linux) and run `aurpublish aur` and `aurpublish aur-bin` - 2. notify Nix - 3. notify Homebrew +11. Notify Nix +12. Notify Homebrew The AUR project still needs secret credentials to aurpublish to the AUR repository, so the final publish step is still currently manual. @@ -29,11 +32,4 @@ Nix adds new and interesting complexities to the release. 3. `cd /mnt` 8. install & run vgo2nix to update deps.nix 7. `nix-build -A gotop` -8. 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 -``` +8. When it fails, ...