diff options
author | sitiom <sitiom@proton.me> | 2023-02-15 15:47:12 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-15 16:47:12 +0900 |
commit | 9e9c0ceaf48ddbc3fe09850fb403708438edbed2 (patch) | |
tree | e10b4bb7508c5a07f88103fcfbe142b5741cb66c | |
parent | b3bf18b1c08524af8d1e80c53bc6017706fc6ca1 (diff) |
Add Winget Releaser workflow (#3164)
-rw-r--r-- | .github/workflows/winget.yml | 15 | ||||
-rw-r--r-- | README.md | 12 |
2 files changed, 22 insertions, 5 deletions
diff --git a/.github/workflows/winget.yml b/.github/workflows/winget.yml new file mode 100644 index 00000000..ca702326 --- /dev/null +++ b/.github/workflows/winget.yml @@ -0,0 +1,15 @@ +name: Publish to Winget +on: + release: + types: [released] + +jobs: + publish: + runs-on: windows-latest # Action can only run on Windows + steps: + - uses: vedantmgoyal2009/winget-releaser@v2 + with: + identifier: junegunn.fzf + version: ${{ github.event.release.tag_name }} + installers-regex: '-windows_(armv7|arm64|amd64)\.zip$' + token: ${{ secrets.WINGET_TOKEN }} @@ -136,15 +136,17 @@ git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf ### Windows Pre-built binaries for Windows can be downloaded [here][bin]. fzf is also -available via [Chocolatey][choco] and [Scoop][scoop]: +available via [Chocolatey][choco], [Scoop][scoop], and [Winget][winget]: -| Package manager | Command | -| --- | --- | -| Chocolatey | `choco install fzf` | -| Scoop | `scoop install fzf` | +| Package manager | Command | +| --- | --- | +| Chocolatey | `choco install fzf` | +| Scoop | `scoop install fzf` | +| Winget | `winget install fzf` | [choco]: https://chocolatey.org/packages/fzf [scoop]: https://github.com/ScoopInstaller/Main/blob/master/bucket/fzf.json +[winget]: https://github.com/microsoft/winget-pkgs/tree/master/manifests/j/junegunn/fzf Known issues and limitations on Windows can be found on [the wiki page][windows-wiki]. |