Skip to content

Bump Microsoft.NET.Test.Sdk from 17.3.2 to 17.6.2 #103

Bump Microsoft.NET.Test.Sdk from 17.3.2 to 17.6.2

Bump Microsoft.NET.Test.Sdk from 17.3.2 to 17.6.2 #103

Workflow file for this run

name: .NET
on:
push:
tags: releases/[0-9]+.[0-9]+.[0-9]+
branches: main
pull_request:
branches: main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'
include-prerelease: true
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Test
run: dotnet test --no-build --verbosity normal
- name: Get version
id: get-version
if: startsWith( github.ref, 'refs/tags/releases/')
run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/releases/}
- name: Create package
if: startsWith( github.ref, 'refs/tags/releases/')
run: dotnet pack --include-symbols --include-source --configuration Release /p:Version=${{ steps.get-version.outputs.VERSION }} --output nupkgs
- name: Publish to nuget.org
if: startsWith( github.ref, 'refs/tags/releases/')
run: dotnet nuget push nupkgs/*.nupkg -k $NUGET_AUTH_TOKEN -s https://api.nuget.org/v3/index.json
env:
NUGET_AUTH_TOKEN: ${{ secrets.AWEISS_NUGET_TOKEN }}