Skip to content

.NET Standard 2.0 backport #3

.NET Standard 2.0 backport

.NET Standard 2.0 backport #3

Workflow file for this run

name: build
on:
push:
branches:
- net8.0
- netstandard2.1
- netstandard2.0
pull_request:
workflow_dispatch:
env:
DOTNET_CLI_TELEMETRY_OPTOUT: true
DOTNET_NOLOGO: true
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
DOTNET_GENERATE_ASPNET_CERTIFICATE: false
DOTNET_SYSTEM_CONSOLE_ALLOW_ANSI_COLOR_REDIRECTION: true
NUGET_XMLDOC_MODE: skip
BUILD_OUTPUT: ${{ github.workspace }}/dist
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET SDK
uses: actions/setup-dotnet@main
- name: Restore dependencies
run: dotnet restore -tl
- name: Build
run: dotnet build -tl -c Release --no-restore
- name: Run tests
run: dotnet test -tl -c Release --no-build
- name: Create NuGet packages
run: dotnet pack -tl -c Release --no-build -o "${{ env.BUILD_OUTPUT }}"
- name: Upload build artifacts
uses: actions/upload-artifact@v3
with:
name: build
if-no-files-found: error
path: ${{ env.BUILD_OUTPUT }}/*.nupkg