Skip to content

Improve tests.

Improve tests. #11

Workflow file for this run

name: .NET
on:
push:
tags:
- v**
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.400
- name: Restore dependencies
run: dotnet restore
- name: Test
run: dotnet test
- name: Build
run: dotnet build -c Release /p:Version=${GITHUB_REF_NAME:1} --no-restore
- name: Push
run: |
dotnet pack -c Release --no-build --verbosity normal /p:Version=${GITHUB_REF_NAME:1} -o ./nugets
cd ./nugets
dotnet nuget push *.nupkg --skip-duplicate -s https://nuget.org -k ${{ secrets.NUGET_KEY }}