Skip to content

Commit

Permalink
fix github actions for nuget upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Garados007 committed Feb 18, 2024
1 parent e12d0e3 commit 54c44db
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions .github/workflows/nuget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,8 @@ jobs:
- name: Install dependencies
run: dotnet restore

- name: Publish MaxLib.WebServer NuGet
uses: brandedoutcast/[email protected]
with:
# Filepath of the project to be packaged, relative to root of repository
PROJECT_FILE_PATH: MaxLib.WebServer/MaxLib.WebServer.csproj
# NuGet package id, used for version detection & defaults to project name
PACKAGE_NAME: MaxLib.WebServer
# API key to authenticate with NuGet server
NUGET_KEY: ${{ secrets.NUGET_PUSH_KEY }}
# Filepath with version info, relative to root of repository & defaults to PROJECT_FILE_PATH:
VERSION_FILE_PATH: MaxLib.WebServer/MaxLib.WebServer.csproj.include
- 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 }}

0 comments on commit 54c44db

Please sign in to comment.