v23.8.1 #19
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: NuGet Gallery NuGet generation | |
on: | |
release: | |
types: [published] | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: windows-latest | |
name: Update NuGet | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@master | |
- name: Build solution and generate NuGet package | |
run: | | |
cd src\netstandard\ | |
dotnet pack -c Release -o out /p:Version="${{ secrets.PACKAGE_VERSION }}" | |
- name: Install NuGet client | |
uses: nuget/setup-nuget@v1 | |
- name: Push generated package to NuGet Gallery | |
run: | | |
cd src\netstandard\ | |
nuget push .\out\*.nupkg -SkipDuplicate -Source https://api.nuget.org/v3/index.json -ApiKey ${{ secrets.NUGET_TOKEN }} -NoSymbols |