Skip to content

Update dotnet.yml #66

Update dotnet.yml

Update dotnet.yml #66

Workflow file for this run

# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
name: .NET
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
workflow_dispatch:
jobs:
build:
runs-on: windows-2022
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Restore dependencies
run: dotnet restore -s https://www.myget.org/F/caliburn-micro-builds/api/v3/index.json -s https://api.nuget.org/v3/index.json
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Test
run: dotnet test --configuration Release --no-build --verbosity normal
- name: Pack Nuget
run: dotnet pack ClientNoSqlDB/ClientNoSqlDB.csproj --configuration Release
- name: Upload Artifact
uses: actions/upload-artifact@v1.0.0
with:
name: published_nuget
path: ClientNoSqlDB/bin/Release/ClientNoSqlDB.2.0.0.nupkg