Skip to content

Merge pull request #17 from adainrivers/main #9

Merge pull request #17 from adainrivers/main

Merge pull request #17 from adainrivers/main #9

Workflow file for this run

name: Release to NuGet
on: [push]
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup .NET SDK
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.100-preview.6.23330.14 # https://github.com/dotnet/core/blob/main/release-notes/8.0/preview/8.0.0-preview.6.md
- name: Build
run: dotnet build -c Release
- name: Test
run: dotnet test -c Release --no-build
- name: Pack nugets
run: dotnet pack -c Release --no-build --output .
- name: Push to NuGet
run: dotnet nuget push "*.nupkg" --api-key ${{secrets.nuget_api_key}} --source https://api.nuget.org/v3/index.json