Skip to content

Commit

Permalink
Merge pull request #328: Adding winget workflow
Browse files Browse the repository at this point in the history
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!
  • Loading branch information
derrickstolee committed Nov 4, 2021
2 parents 353c6ac + ed5c670 commit a091c82
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/release-winget.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: "release-winget"
on:
release:
types: [released]

jobs:
release:
runs-on: ubuntu-latest
steps:
- id: update-winget
name: Update winget repository
uses: mjcheetham/update-winget@v1.4
with:
id: Microsoft.Git
token: ${{ secrets.WINGET_TOKEN }}
releaseAsset: Git-([0-9.vfs]*)\-64-bit.exe
manifestText: |
PackageIdentifier: {{id}}
PackageVersion: {{version:s/\.[A-Za-z]+\././}}
PackageName: Microsoft Git
Publisher: The Git Client Team at GitHub
Moniker: microsoft-git
PackageUrl: https://aka.ms/ms-git
Tags:
- microsoft-git
License: GPLv2
ShortDescription: |
Git distribution to support monorepo scenarios.
Note: This is not Git for Windows. Unless you are working in a monorepo and require
specific Git modifications, please run `winget install git` to start using Git for Windows.
Installers:
- Architecture: x64
InstallerUrl: {{url}}
InstallerType: inno
InstallerSha256: {{sha256}}
PackageLocale: en-US
ManifestType: singleton
ManifestVersion: 1.0.0
alwaysUsePullRequest: true

0 comments on commit a091c82

Please sign in to comment.