Skip to content

Commit 04854eb

Browse files
committed
Merge pull request #328: Adding winget workflow
Adding a shiny new workflow to publish releases to winget! 🥳 I validated this workflow locally by successfully opening a [PR](https://github.com/ldennington/winget-playground/pull/4) against my winget-playground repo and running `winget validate` to ensure the generated manifest adheres to winget's required schema. Any feedback on the fields I've included (\*cough\* `ShortDescription:` \*cough\*) or suggestions for additional fields/values are welcome!
2 parents d238ea7 + d731eca commit 04854eb

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: "release-winget"
2+
on:
3+
release:
4+
types: [released]
5+
6+
jobs:
7+
release:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- id: update-winget
11+
name: Update winget repository
12+
uses: mjcheetham/[email protected]
13+
with:
14+
id: Microsoft.Git
15+
token: ${{ secrets.WINGET_TOKEN }}
16+
releaseAsset: Git-([0-9.vfs]*)\-64-bit.exe
17+
manifestText: |
18+
PackageIdentifier: {{id}}
19+
PackageVersion: {{version:s/\.[A-Za-z]+\././}}
20+
PackageName: Microsoft Git
21+
Publisher: The Git Client Team at GitHub
22+
Moniker: microsoft-git
23+
PackageUrl: https://aka.ms/ms-git
24+
Tags:
25+
- microsoft-git
26+
License: GPLv2
27+
ShortDescription: |
28+
Git distribution to support monorepo scenarios.
29+
Note: This is not Git for Windows. Unless you are working in a monorepo and require
30+
specific Git modifications, please run `winget install git` to start using Git for Windows.
31+
Installers:
32+
- Architecture: x64
33+
InstallerUrl: {{url}}
34+
InstallerType: inno
35+
InstallerSha256: {{sha256}}
36+
PackageLocale: en-US
37+
ManifestType: singleton
38+
ManifestVersion: 1.0.0
39+
alwaysUsePullRequest: true

0 commit comments

Comments
 (0)