Skip to content

Bump Microsoft.NET.Test.Sdk from 17.1.0 to 17.8.0 #518

Bump Microsoft.NET.Test.Sdk from 17.1.0 to 17.8.0

Bump Microsoft.NET.Test.Sdk from 17.1.0 to 17.8.0 #518

Workflow file for this run

name: .NET Core
on:
push:
paths-ignore:
- 'README.md'
pull_request:
paths-ignore:
- 'README.md'
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v2.4.0
- name: Setup .NET Core SDK
uses: actions/setup-dotnet@v1.9.0
with:
dotnet-version: '6.0.x'
- name: Install Dependencies
run: dotnet restore
- name: Build (Release)
run: dotnet build --configuration Release --no-restore
- name: Test (Release)
run: dotnet test --configuration Release --no-build --no-restore
- name: Pack (Release)
run: dotnet pack --configuration Release --output .\nuget --no-build --no-restore
- name: Publish
if: github.event_name == 'push'
run: |
if ( "${{github.ref}}" -match "^refs/tags/[0-9]+\.[0-9]+\.[0-9]+$" ) {
dotnet nuget push .\nuget\*.nupkg -s nuget.org -k ${{secrets.NUGET_TOKEN}} --skip-duplicate
} else {
echo "publish is only enabled by tagging with a release tag"
}