Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: add Winget Releaser action #526

Merged
merged 3 commits into from
Jul 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading