Skip to content

Merge pull request #26 from numbworks/v4.1.0 #47

Merge pull request #26 from numbworks/v4.1.0

Merge pull request #26 from numbworks/v4.1.0 #47

Workflow file for this run

name: .NET
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Install dotnet SDK 8.x
uses: actions/setup-dotnet@v1
with:
dotnet-version: 8.x
- name: Display installed SDKs
run: dotnet --info
- name: Restore dependencies
run: dotnet restore -s https://api.nuget.org/v3/index.json --verbosity n
- name: Build
working-directory: ./
run: dotnet build --no-restore
- name: Run unit tests
working-directory: ./
run: dotnet test --no-build --verbosity normal
- name: Pack
working-directory: ./src/NW.UnivariateForecasting/
run: dotnet pack --configuration Release NW.UnivariateForecasting.csproj
- name: Push to NuGet.org
working-directory: ./src/NW.UnivariateForecasting/bin/Release/
run: dotnet nuget push *.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{secrets.NUGET_API_KEY}} --skip-duplicate