Skip to content

Commit 7bd94a8

Browse files
committed
Add job to publish artifacts to NuGet in GithubActions.yml
Added a new job "Publish Build Artifacts to NuGet Feed" in GithubActions.yml. This job, running on a PowerShell shell, pushes the build artifacts (.nupkg files) to a NuGet feed using the `dotnet nuget push` command. The API key and source are fetched from GitHub secrets and variables respectively. This change enables distribution of build artifacts to users via the NuGet package manager.
1 parent 698a472 commit 7bd94a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/GithubActions.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ jobs:
377377
name: build-artifacts
378378
path: ${{ env.artifactStagingDirectory }}
379379

380-
- name: ''
380+
- name: Publish Build Artifacts to NuGet Feed
381381
shell: pwsh
382382
run: |
383383
dotnet nuget push "${{ env.artifactStagingDirectory }}/*.nupkg" --api-key ${{ secrets.NUGET_PUBLIC_KEY }} --source ${{ vars.NUGET_PUBLIC_SOURCE }}

0 commit comments

Comments
 (0)