Skip to content

Publish Nuget Package #1

Publish Nuget Package

Publish Nuget Package #1

name: .NET Core Desktop
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
strategy:
matrix:
configuration: [Debug, Release]
runs-on: ubuntu-latest
defaults:
run:
working-directory: $env:Working_Dir
env:
Working_Dir: ./src/
Solution_Name: Extended.Collections.sln
Solution_Path: $env:Working_Dir$env:Solution_Name
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Execute unit tests
run: dotnet test $env:Solution_Path
- name: Restore the application
run: dotnet msbuild $env:Solution_Path -t:Restore -p:Configuration=$env:Configuration
env:
Configuration: ${{ matrix.configuration }}