From f32da000c43e8d50d5522da04dd6297d56bde8ea Mon Sep 17 00:00:00 2001 From: Craig Loewen Date: Wed, 11 Sep 2024 16:54:02 -0400 Subject: [PATCH] Removed winget.yml --- .github/workflows/winget.yml | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 .github/workflows/winget.yml diff --git a/.github/workflows/winget.yml b/.github/workflows/winget.yml deleted file mode 100644 index 302dd02d..00000000 --- a/.github/workflows/winget.yml +++ /dev/null @@ -1,28 +0,0 @@ -name: Publish to Winget - -on: - release: - types: [published] - -env: - REGEX: 'wsl\.([\d.]+)\.x64\.msi$' - -jobs: - publish: - runs-on: windows-latest # Action can only run on Windows - steps: - - name: Publish WSL - run: | - $assets = '${{ toJSON(github.event.release.assets) }}' | ConvertFrom-Json - $wingetRelevantAssetx64 = $assets | Where-Object { $_.name -like '*x64.msi' } | Select-Object -First 1 - $wingetRelevantAssetARM64 = $assets | Where-Object { $_.name -like '*arm64.msi' } | Select-Object -First 1 - $regex = [Regex]::New($env:REGEX) - $version = $regex.Match($wingetRelevantAssetx64.name).Groups[1].Value - - $wingetx64URL = $wingetRelevantAssetx64.browser_download_url - $wingetARM64URL = $wingetRelevantAssetARM64.browser_download_url - - $wingetPackage = "Microsoft.WSL" - - & curl.exe -JLO https://aka.ms/wingetcreate/latest - & .\wingetcreate.exe update $wingetPackage -s -v $version -u "$wingetx64URL|x64" "$wingetARM64URL|arm64" -t "${{ secrets.WINGET_TOKEN }}"