Skip to content

Publish NuGet package #4

Publish NuGet package

Publish NuGet package #4

Workflow file for this run

name: Publish NuGet package
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build -c Release --no-restore
- name: Publish
run: dotnet publish -c Release --no-restore
- name: Upload nuget package
run: dotnet nuget push ./src/Beep/bin/Release/*.nupkg --api-key ${{ secrets.GITHUB_TOKEN }} --source https://nuget.pkg.github.com/oldbit-com/index.json