Skip to content

Commit

Permalink
ci: add Winget Releaser action (#526)
Browse files Browse the repository at this point in the history
Co-authored-by: Valentin Kiselev <mrexox@evilmartians.com>
  • Loading branch information
sitiom and mrexox authored Jul 24, 2023
1 parent ef136c4 commit 41e1f60
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: goreleaser
on:
push:
tags:
- '*'
- "*"

permissions:
contents: write
Expand Down Expand Up @@ -67,3 +67,10 @@ jobs:
with:
formula: lefthook
token: ${{secrets.HOMEBREW_TOKEN}}

- name: Publish to Winget
uses: vedantmgoyal2009/winget-releaser@v2
with:
identifier: evilmartians.lefthook
fork-user: mrexox
token: ${{ secrets.WINGET_TOKEN }}
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ skip_output:
* [Install with Node.js](./docs/install.md#node)
* [Install with Ruby](./docs/install.md#ruby)
* [Install with Homebrew](./docs/install.md#homebrew)
* [Install with Winget](./docs/install.md#winget)
* [Install for Debian-based Linux](./docs/install.md#deb)
* [Install for RPM-based Linux](./docs/install.md#rpm)
* [Install for Arch Linux](./docs/install.md#arch)
Expand Down
7 changes: 7 additions & 0 deletions docs/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Choose your fighter:
- [Go](#go)
- [Python](#python)
- [Homebrew](#homebrew)
- [Winget](#winget)
- [Snap](#snap)
- [Debian-based distro](#deb)
- [RPM-based distro](#rpm)
Expand Down Expand Up @@ -75,6 +76,12 @@ python3 -m pip install --user lefthook
brew install lefthook
```

## <a id="winget"></a> Winget for Windows

```sh
winget install evilmartians.lefthook
```

## <a id="snap"></a> Snap for Linux

```sh
Expand Down

0 comments on commit 41e1f60

Please sign in to comment.