name: NuGet release on: push: branches: - release jobs: release: runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 - name: Build solution run: dotnet build --output build - name: Publish NuGet package run: dotnet nuget push "build/*.nupkg" --skip-duplicate --source nuget.org --api-key ${{ secrets.NUGET_TOKEN }}