From 33997106da4b09b08a7b60df8498914077bafadc Mon Sep 17 00:00:00 2001 From: Ryan Caezar Itang Date: Tue, 28 Mar 2023 08:31:10 +0800 Subject: [PATCH 1/3] Add Winget Releaser workflow --- .github/workflows/CICD.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/CICD.yml b/.github/workflows/CICD.yml index d1e289c3..93e3d218 100644 --- a/.github/workflows/CICD.yml +++ b/.github/workflows/CICD.yml @@ -431,3 +431,15 @@ jobs: ${{ steps.debian-package.outputs.DPKG_PATH }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + winget: + name: Publish to Winget + runs-on: windows-latest # Action can only run on Windows + 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 }} From 60a9ac041f2668197bd029c9028a05657bb96289 Mon Sep 17 00:00:00 2001 From: sitiom Date: Thu, 30 Mar 2023 13:41:11 +0800 Subject: [PATCH 2/3] Add Winget installation method in the readme --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index d94f1eb4..1cca9e0d 100644 --- a/README.md +++ b/README.md @@ -404,6 +404,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), From 77069b368cf1ad0d03218e38cff6fe787abf4af0 Mon Sep 17 00:00:00 2001 From: sitiom Date: Wed, 7 Jun 2023 17:30:10 +0800 Subject: [PATCH 3/3] Update CICD.yml --- .github/workflows/CICD.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/CICD.yml b/.github/workflows/CICD.yml index 93e3d218..e7cb9cac 100644 --- a/.github/workflows/CICD.yml +++ b/.github/workflows/CICD.yml @@ -434,7 +434,7 @@ jobs: winget: name: Publish to Winget - runs-on: windows-latest # Action can only run on Windows + runs-on: ubuntu-latest needs: build if: startsWith(github.ref, 'refs/tags/v') steps: