Skip to content

Commit

Permalink
Trying to get the workflow working.
Browse files Browse the repository at this point in the history
  • Loading branch information
xxxserxxx committed Jun 7, 2020
1 parent b20f477 commit 5590679
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 33 deletions.
18 changes: 0 additions & 18 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
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: [email protected]
commit_author: Badge Updater <[email protected]>
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

<div align="center">Current release: <a href="https://github.com/xxxserxxx/gotop/releases/tag/v4.0.0">v4.0.0</a></div>
<div id="release" align="center">Current release: <a href="https://github.com/xxxserxxx/gotop/releases/tag/v4.0.0">v4.0.0</a></div>

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.

Expand Down
24 changes: 10 additions & 14 deletions docs/releasing.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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, ...

0 comments on commit 5590679

Please sign in to comment.