fix github actions for nuget upload #37
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |