Adds a current-release badge to the README

This commit is contained in:
Sean E. Russell 2020-05-13 12:31:51 -05:00
parent 28df77fe42
commit 9e4750f7ff
3 changed files with 34 additions and 3 deletions

View File

@ -36,3 +36,21 @@ jobs:
token: ${{ secrets.homebrew }} token: ${{ secrets.homebrew }}
formula: gotop formula: gotop
revision: ${{ steps.tag_name.outputs.tag }} revision: ${{ 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 <ser@ser1.net>

View File

@ -9,6 +9,14 @@ Another terminal based graphical activity monitor, inspired by [gtop](https://gi
Join us in [\#gotop:matrix.org](https://riot.im/app/#/room/#gotop:matrix.org) ([matrix clients](https://matrix.to/#/#gotop:matrix.org)). Join us in [\#gotop:matrix.org](https://riot.im/app/#/room/#gotop:matrix.org) ([matrix clients](https://matrix.to/#/#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)
![](https://github.com/xxxserxxx/gotop/docs/release.svg)
See the [mini-blog](/xxxserxxx/gotop/wiki/blog) for updates on the build status, and the [change log](/xxxserxxx/gotop/blob/master/CHANGELOG.md) for release updates.
<img src="./assets/screenshots/demo.gif" /> <img src="./assets/screenshots/demo.gif" />
<img src="./assets/screenshots/kitchensink.gif" /> <img src="./assets/screenshots/kitchensink.gif" />
@ -16,9 +24,6 @@ Join us in [\#gotop:matrix.org](https://riot.im/app/#/room/#gotop:matrix.org) ([
## Installation ## Installation
![](https://github.com/xxxserxxx/gotop/workflows/Build%20Go%20binaries/badge.svg)
![](https://github.com/xxxserxxx/gotop/workflows/Create%20pre-release/badge.svg)
Working and tested on Linux, FreeBSD and MacOS. Windows binaries are provided, but have limited testing. OpenBSD works with some caveats; cross-compiling is difficult and binaries are not provided. Working and tested on Linux, FreeBSD and MacOS. Windows binaries are provided, but have limited testing. OpenBSD works with some caveats; cross-compiling is difficult and binaries are not provided.
If you install gotop by hand, or you download or create new layouts or colorschemes, you will need to put the layout files where gotop can find them. To see the list of directories gotop looks for files, run `gotop -h`. The first directory is always the directory from which gotop is run. If you install gotop by hand, or you download or create new layouts or colorschemes, you will need to put the layout files where gotop can find them. To see the list of directories gotop looks for files, run `gotop -h`. The first directory is always the directory from which gotop is run.

8
docs/release.svg Normal file
View File

@ -0,0 +1,8 @@
<svg xmlns="http://www.w3.org/2000/svg" width="164" height="20">
<a href="/xxxserxxx/gotop/releases/tag/v3.5.2">
<text font-size="14pt" fill="#000000" x="5" y="15">
Current release: <tspan font-weight="bold">v3.5.2</tspan>
</text>
</a>
</svg>

After

Width:  |  Height:  |  Size: 268 B