Skip to content

Commit 81a217b

Browse files
authored
Merge pull request #2519 from sitiom/winget-releaser
Add Winget Releaser workflow
2 parents bb17f74 + 77069b3 commit 81a217b

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

.github/workflows/CICD.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,3 +455,15 @@ jobs:
455455
${{ steps.debian-package.outputs.DPKG_PATH }}
456456
env:
457457
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
458+
459+
winget:
460+
name: Publish to Winget
461+
runs-on: ubuntu-latest
462+
needs: build
463+
if: startsWith(github.ref, 'refs/tags/v')
464+
steps:
465+
- uses: vedantmgoyal2009/winget-releaser@v2
466+
with:
467+
identifier: sharkdp.bat
468+
installers-regex: '-pc-windows-msvc\.zip$'
469+
token: ${{ secrets.WINGET_TOKEN }}

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,13 @@ You can install `bat` via [scoop](https://scoop.sh/):
412412
scoop install bat
413413
```
414414

415+
#### With Winget
416+
417+
You can install `bat` via [Winget](https://learn.microsoft.com/en-us/windows/package-manager/):
418+
```bash
419+
winget install sharkdp.bat
420+
```
421+
415422
#### From prebuilt binaries:
416423

417424
You can download prebuilt binaries from the [Release page](https://github.com/sharkdp/bat/releases),

0 commit comments

Comments
 (0)