Add Winget Releaser workflow (#1331)

* Add Winget installation in the docs

* Add GitHub actions to Dependabot

* Add Winget Releaser workflow
This commit is contained in:
sitiom 2023-03-08 03:29:46 +08:00 committed by GitHub
parent 3a09926e45
commit 56fa5dd6d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 20 additions and 0 deletions

View File

@ -9,3 +9,7 @@ updates:
- dependency-name: regex
versions:
- 1.4.4
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"

View File

@ -98,6 +98,18 @@ jobs:
- uses: dtolnay/rust-toolchain@stable
- run: cargo publish --token ${{ secrets.CARGO_API_KEY }} --allow-dirty
publish-to-winget:
name: Publish to WinGet
runs-on: windows-latest # Action can only be run on windows
needs: publish
steps:
- uses: vedantmgoyal2009/winget-releaser@v2
with:
identifier: dandavison.delta
version: ${{ github.ref_name }}
installers-regex: '-pc-windows-msvc\.zip$'
token: ${{ secrets.WINGET_TOKEN }}
bump-homebrew-formula:
runs-on: macos-latest
steps:

View File

@ -68,6 +68,10 @@ Note that the package is often called `git-delta`, but the executable installed
<td>Windows (<a href="https://scoop.sh/">Scoop</a>)</td>
<td><code>scoop install delta</code></td>
</tr>
<tr>
<td>Windows (<a href="https://learn.microsoft.com/en-us/windows/package-manager/">Winget</a>)</td>
<td><code>winget install dandavison.delta</code></td>
</tr>
<tr>
<td>Debian / Ubuntu</td>
<td>