Skip to content

Commit

Permalink
add aur build
Browse files Browse the repository at this point in the history
  • Loading branch information
mazzz1y committed Dec 4, 2022
1 parent 1b6b8e0 commit c09ea36
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ jobs:
uses: actions/setup-go@v3
with:
go-version: '>=1.19.0'
- name: Tests
-
name: Tests
run: go test -v ./...
-
name: Run GoReleaser
Expand All @@ -30,3 +31,4 @@ jobs:
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GORELEASER_GITHUB_TOKEN }}
AUR_KEY: ${{ secrets.AUR_KEY }}
13 changes: 13 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ builds:
- amd64
- arm
- arm64

brews:
- tap:
owner: mazzz1y
Expand All @@ -34,3 +35,15 @@ nfpms:
- deb
- rpm
bindir: /usr/bin

aurs:
- name: mcli-bin
homepage: "https://github.com/mazzz1y/mcli"
description: "Simple shortcut menu for shell commands."
maintainers:
- 'Dmitry Rubtsov <[email protected]>'
license: "MIT"
private_key: '{{ .Env.AUR_KEY }}'
git_url: 'ssh://[email protected]/mcli-bin.git'
provides:
- mcli
4 changes: 2 additions & 2 deletions pkg/shortcuts/shortcuts.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ func (ss *Shortcuts) Add(s Shortcut) {
ss.sort()
}

func (ss *Shortcuts) Delete(i Shortcut) {
func (ss *Shortcuts) Delete(s Shortcut) {
a := *ss
a[i.Index] = a[len(a)-1]
a[s.Index] = a[len(a)-1]
*ss = a[:len(a)-1]
ss.sort()
}
Expand Down

0 comments on commit c09ea36

Please sign in to comment.