Skip to content

.NET

.NET #6

Workflow file for this run

name: .NET
on: workflow_dispatch
jobs:
build:
runs-on: ubuntu-latest
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
- name: Build
run: dotnet build --no-restore -c=Release
- name: Test
run: dotnet test --no-build --verbosity normal
- name: Pack
run: dotnet pack --output ./artifacts --include-symbols -p:SymbolPackageFormat=snupkg
- name: Publish packages
run: dotnet nuget push ./artifacts/**.nupkg --source nuget.org --api-key ${{secrets.NUGET_API_KEY}}
- uses: actions/upload-artifact@v3.1.1
with:
name: artifacts
path: ./artifacts