Skip to content

Update build-test.yml .NET 8 #118

Update build-test.yml .NET 8

Update build-test.yml .NET 8 #118

Workflow file for this run

name: CI Build
on: [push, pull_request]
env:
DOTNET_CLI_TELEMETRY_OPTOUT: true
DOTNET_NOLOGO: true
jobs:
build:
runs-on: windows-2022
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 50
lfs: 'true'
- run: git fetch --tags
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build -c Debug --no-restore
- name: Test
run: dotnet test -c Debug
- name: Pack
if: github.ref == 'refs/heads/develop'
run: dotnet pack -c Release -o ${{ github.workspace }}/build
- name: "GitHub packages: NuGet push"
if: github.ref == 'refs/heads/develop'
run: dotnet nuget push *.nupkg --no-symbols 1 --skip-duplicate -k ${{ secrets.GITHUB_TOKEN }} -s "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json"
working-directory: ${{ github.workspace }}/build