Skip to content

CI: publish NuGet packages #15

CI: publish NuGet packages

CI: publish NuGet packages #15

Workflow file for this run

name: Build .net core
on: [push]
jobs:
build:
name: Test ${{ matrix.os }} for dotnet ${{ matrix.dotnet }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
dotnet: [ '8.0.x' ]
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- uses: actions/checkout@v1
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: ${{ matrix.dotnet }}
- name: Build with dotnet core
run: dotnet build --configuration Release
- name: Tests
run: dotnet test DotNetDBF.Test/DotNetDBF.Test.cspr"oj --configuration Release --no-build --no-restore
- name: Publish
run: dotnet nuget push publish/* --source https://nuget.pkg.github.com/ekonbenefits/index.json --api-key ${GITHUB_TOKEN}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
if: matrix.os == 'windows-latest'