Skip to content

Some tidyups only.

Some tidyups only. #10

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:
- main
- support/*
pull_request:
branches:
- main
- support/*
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
filter: tree:0
- name: Get tags
run: git fetch --tags origin
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Test
run: dotnet test --configuration Release -p:CollectCoverage=true
- name: Publish Nuget
run: |
dotnet nuget push '**/*.nupkg' -k ${NUGET} -s https://api.nuget.org/v3/index.json --skip-duplicate --no-symbols
env:
NUGET: ${{ secrets.NUGET }}
- name: Upload Artifacts
uses: actions/upload-artifact@v2
with:
name: artifacts
path: |
**/*.nupkg