diff options
author | sitiom <sitiom@proton.me> | 2023-03-08 03:29:46 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-07 19:29:46 +0000 |
commit | 56fa5dd6d3b0f42c4e931edfc2eb762c4567e4a7 (patch) | |
tree | 59cade3b9f022ef3a0468429d9867fbe9ad8fcd0 | |
parent | 3a09926e4576542e4fac04943dc6781eb026656e (diff) |
Add Winget Releaser workflow (#1331)
* Add Winget installation in the docs
* Add GitHub actions to Dependabot
* Add Winget Releaser workflow
-rw-r--r-- | .github/dependabot.yml | 4 | ||||
-rw-r--r-- | .github/workflows/cd.yml | 12 | ||||
-rw-r--r-- | manual/src/installation.md | 4 |
3 files changed, 20 insertions, 0 deletions
diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 93d08fb7..6268b8c0 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -9,3 +9,7 @@ updates: - dependency-name: regex versions: - 1.4.4 +- package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "daily" diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 1c8a9061..564b9d28 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -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: diff --git a/manual/src/installation.md b/manual/src/installation.md index 6c722697..5f20e5ef 100644 --- a/manual/src/installation.md +++ b/manual/src/installation.md @@ -69,6 +69,10 @@ Note that the package is often called `git-delta`, but the executable installed <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> <code>dpkg -i file.deb</code> |