Skip to content

Build & Publish

Build & Publish #12

name: Build & Publish
on:
workflow_dispatch:
jobs:
BuildAndPublish:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'
- name: Build StbImageSharp
run: dotnet build src\StbImageSharp.csproj --configuration Release
- name: Install NuGet
uses: NuGet/setup-nuget@v1
- name: Publish StbImageSharp to NuGet
run: nuget.exe push src\bin\Release\StbImageSharp.*.nupkg ${{secrets.NUGET_APIKEY}} -Source https://api.nuget.org/v3/index.json