Skip to content

Commit

Permalink
Brew tap (#81)
Browse files Browse the repository at this point in the history
* cd: use gorelease --clean instead of --rm-dist

* cd: check brew tap has been installed after a release

* README.md: update ci/cd workflow badges

* README.md: add brew tap to install section

Closes #52
arl authored Feb 11, 2023
1 parent 794f960 commit e76504f
Showing 2 changed files with 33 additions and 3 deletions.
17 changes: 16 additions & 1 deletion .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -10,6 +10,7 @@ permissions:

jobs:
goreleaser:
name: Publish release to github/brew
runs-on: ubuntu-latest
steps:
- name: Checkout
@@ -25,6 +26,20 @@ jobs:
with:
distribution: goreleaser
version: latest
args: release --rm-dist
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}

check_brew:
name: Check brew tap has been updated
runs-on: macos-latest
needs: goreleaser
steps:
- name: brew tap/install
run: |
brew tap arl/arl
brew install gitmux
gitmux -V
- name: check gitmux version
run: |
[ v$(gitmux -V) == "$GITHUB_REF_NAME" ]
19 changes: 17 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -5,8 +5,12 @@
<hr>

<p align="center">
<a href="https://github.com/arl/gitmux/actions">
<img alt="tests" src="https://github.com/arl/gitmux/actions/workflows/tests.yml/badge.svg" />

<a href="https://github.com/arl/gitmux/actions/workflows/ci.yml">
<img alt="tests" src="https://github.com/arl/gitmux/actions/workflows/ci.yml/badge.svg" />
</a>
<a href="https://github.com/arl/gitmux/actions/workflows/cd.yml">
<img alt="tests" src="https://github.com/arl/gitmux/actions/workflows/cd.yml/badge.svg" />
</a>
<a href="https://goreportcard.com/report/github.com/arl/gitmux">
<img alt="goreport" src="https://goreportcard.com/badge/github.com/arl/gitmux" />
@@ -25,6 +29,7 @@
- **shell-agnostic**. Does not rely on shell-features so works with all of them
- **customizable**. Colors, symbols and layout are configurable


## Prerequisites

Works with all decently recent [tmux](https://github.com/tmux/tmux) versions.
@@ -35,6 +40,16 @@ Works with all decently recent [tmux](https://github.com/tmux/tmux) versions.

[Download the latest](https://github.com/arl/gitmux/releases/latest) binary for your platform/architecture and uncompress it.


### Homebrew (tap)

Install the latest version with:

```sh
brew tap arl/arl
brew install gitmux
```

### AUR

Arch Linux users can download the [gitmux](https://aur.archlinux.org/packages/gitmux), [gitmux-bin](https://aur.archlinux.org/packages/gitmux-bin) or [gitmux-git](https://aur.archlinux.org/packages/gitmux-git) AUR package.

0 comments on commit e76504f

Please sign in to comment.