Skip to content

v 1.2.1

v 1.2.1 #9

Workflow file for this run

name: Publish NuGet Package
on:
workflow_dispatch:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup .NET SDK
uses: actions/setup-dotnet@v4
- name: Build
run: dotnet build Source/dotnet/Driver/YoshiPi.Hardware.csproj -c Release
- name: Pack nugets
run: dotnet pack Source/dotnet/Driver/YoshiPi.Hardware.csproj -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