diff --git a/.github/workflows/CICD.yml b/.github/workflows/CICD.yml index 7fa2c74909..4882505c80 100644 --- a/.github/workflows/CICD.yml +++ b/.github/workflows/CICD.yml @@ -455,3 +455,15 @@ jobs: ${{ steps.debian-package.outputs.DPKG_PATH }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + winget: + name: Publish to Winget + runs-on: ubuntu-latest + needs: build + if: startsWith(github.ref, 'refs/tags/v') + steps: + - uses: vedantmgoyal2009/winget-releaser@v2 + with: + identifier: sharkdp.bat + installers-regex: '-pc-windows-msvc\.zip$' + token: ${{ secrets.WINGET_TOKEN }} diff --git a/README.md b/README.md index 5e976d565c..4f0849cbd2 100644 --- a/README.md +++ b/README.md @@ -412,6 +412,13 @@ You can install `bat` via [scoop](https://scoop.sh/): scoop install bat ``` +#### With Winget + +You can install `bat` via [Winget](https://learn.microsoft.com/en-us/windows/package-manager/): +```bash +winget install sharkdp.bat +``` + #### From prebuilt binaries: You can download prebuilt binaries from the [Release page](https://github.com/sharkdp/bat/releases),