Skip to content

Add code

Add code #3

Workflow file for this run

name: Build
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Restore dependencies
run: dotnet restore
working-directory: src
- name: Build
run: dotnet build --no-restore -c Release
working-directory: src
- name: Pack
run: dotnet pack -c Release -o ../nupkgs --no-build
working-directory: src
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
path: ./nupkgs/*