VFS for Git 1.0.24072.1 #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "release-winget" | |
on: | |
release: | |
types: [released] | |
jobs: | |
release: | |
runs-on: windows-latest | |
steps: | |
- name: Publish manifest with winget-create | |
run: | | |
# Get correct release asset | |
$github = Get-Content '${{ github.event_path }}' | ConvertFrom-Json | |
$asset = $github.release.assets | Where-Object -Property name -match 'SetupGVFS[\d\.]*.exe' | |
# Remove 'v' from the version | |
$version = $github.release.tag_name -replace ".v","" | |
# Download and run wingetcreate | |
Invoke-WebRequest https://aka.ms/wingetcreate/latest -OutFile wingetcreate.exe | |
.\wingetcreate.exe update Microsoft.VFSforGit -u $asset.browser_download_url -v $version -o manifests -t "${{ secrets.WINGET_TOKEN }}" -s | |
shell: powershell |