Skip to content

fix github actions for nuget upload #37

fix github actions for nuget upload

fix github actions for nuget upload #37

Workflow file for this run

name: NuGet Publish
on:
push:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Init git submodules
run: git submodule init && git submodule update
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: '8.0'
- name: Install dependencies
run: dotnet restore
- name: Create NuGet package
run: dotnet pack MaxLib.WebServer/MaxLib.WebServer.csproj
- name: Publish to NuGet.org
run: dotnet nuget push "**/*.nupkg" --api-key ${{ secrets.NUGET_PUSH_KEY }}