Skip to content

v1.1.2

v1.1.2 #4

Workflow file for this run

# https://stackoverflow.com/a/74951756/17338243
name: Publish to NuGet
on:
release:
types: published
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x
- name: Build
run: dotnet build -c Release
- name: Test
run: dotnet test -c Release --no-build --verbosity normal
- name: Pack
run: dotnet pack /p:Version=${{github.event.release.tag_name}} -c Release CommandExec/CommandExec.csproj --no-build --output .
- name: Publish to NuGet
run: dotnet nuget push *.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json