Skip to content

Commit

Permalink
Added upload to github nuget feed
Browse files Browse the repository at this point in the history
  • Loading branch information
deluxe2 committed May 10, 2024
1 parent 11764a3 commit 5916608
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,10 @@ jobs:
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Upload a Build Artifact
uses: actions/upload-artifact@v4.3.1
with:
path: RDMSharp/bin/Release/**/RDMSharp.dll
- name: Publish RDMSharp
uses: brandedoutcast/publish-nuget@v2.5.2
with:
PROJECT_FILE_PATH: RDMSharp/RDMSharp.csproj
NUGET_KEY: ${{secrets.NUGET_KEY}}
PACKAGE_NAME: RDMSharp
- name: Create Nuget Package
run: dotnet pack --configuration Release
- name: Upload to Github Feed
run: dotnet nuget push RDMSharp/bin/Release/RDMSharp.*.nupkg --api-key ${{secrets.GITHUB_TOKEN}} -s https://nuget.pkg.github.com/DMXControl/index.json
- name: Upload to Nuget.org
run: dotnet nuget push RDMSharp/bin/Release/RDMSharp.*.nupkg --api-key ${{secrets.NUGET_KEY}} -s https://api.nuget.org/v3/index.json

0 comments on commit 5916608

Please sign in to comment.