Skip to content

init

init #9

Workflow file for this run

name: build
on: [ push, pull_request ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET 8 SDK
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
- name: restore
run: dotnet restore
- name: build
run: dotnet build --no-restore
# release to NuGet if push of tag
release:
runs-on: ubuntu-latest
needs: build
if: startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/checkout@v3
- name: Setup .NET 8 SDK
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
- name: pack
run: dotnet pack --configuration Release -o ./bin/nupkg
- name: push
run: dotnet nuget push ./bin/nupkg/*.nupkg -k ${{ secrets.NUGET_KEY }} -s https://api.nuget.org/v3/index.json