Skip to content

Commit 9fcda8b

Browse files
Lessley Denningtonderrickstolee
authored andcommitted
Adding winget workflows
1 parent fe6d651 commit 9fcda8b

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)