diff --git a/.github/workflows/CICD.yml b/.github/workflows/CICD.yml index bf4381e4..7a1307eb 100644 --- a/.github/workflows/CICD.yml +++ b/.github/workflows/CICD.yml @@ -351,3 +351,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.pastel + installers-regex: '-pc-windows-msvc\.zip$' + token: ${{ secrets.WINGET_TOKEN }} diff --git a/README.md b/README.md index 8f0e61e9..500cd32a 100644 --- a/README.md +++ b/README.md @@ -155,6 +155,13 @@ You can install `pastel` via [Scoop](https://github.com/ScoopInstaller/Main/blob scoop install pastel ``` +#### With Winget + +You can install `pastel` via [Winget](https://learn.microsoft.com/en-us/windows/package-manager/): +```bash +winget install sharkdp.pastel +``` + ### Via snap package [Get it from the Snap Store](https://snapcraft.io/pastel):