From ed5c670e22e0f2dbfae74b2fbf67c4fd0068f496 Mon Sep 17 00:00:00 2001 From: Lessley Dennington Date: Thu, 29 Apr 2021 10:28:44 -0700 Subject: [PATCH] Adding winget workflows --- .github/workflows/release-winget.yml | 39 ++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/release-winget.yml diff --git a/.github/workflows/release-winget.yml b/.github/workflows/release-winget.yml new file mode 100644 index 00000000000000..8b1f5724b68247 --- /dev/null +++ b/.github/workflows/release-winget.yml @@ -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