0.3.0 #3
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 & Publish | |
# When a release is published | |
on: | |
release: | |
types: [published] | |
jobs: | |
publishWindows: | |
env: | |
VERSION: ${{ github.event.release.tag_name }} | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup .NET 7 | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 7.0.x | |
- name: Build, Pack, Push | |
run: | | |
dotnet restore POpusCodec.csproj | |
dotnet build POpusCodec.csproj --configuration Release -p:Version=${{ env.VERSION }} | |
dotnet pack POpusCodec.csproj --output nupkgs --configuration Release -p:Version=${{ env.VERSION }} | |
dotnet nuget push nupkgs\*.nupkg -k ${{ secrets.NUGET_TOKEN }} -s https://api.nuget.org/v3/index.json |