GCM 2.8.0 #18
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-dotnet-tool | |
on: | |
release: | |
types: [released] | |
jobs: | |
release: | |
runs-on: windows-latest | |
environment: release | |
steps: | |
- name: Download NuGet package from release and publish | |
run: | | |
# Get asset information | |
$github = Get-Content '${{ github.event_path }}' | ConvertFrom-Json | |
$asset = $github.release.assets | Where-Object -Property name -match '.nupkg$' | |
# Download asset | |
Invoke-WebRequest -Uri $asset.browser_download_url -OutFile $asset.name | |
# Publish asset | |
dotnet nuget push $asset.name --api-key ${{ secrets.NUGET_API_KEY }} --source https://int.nugettest.org/api/v2/package | |
shell: powershell |