Skip to content

Commit

Permalink
Fix nuget push
Browse files Browse the repository at this point in the history
  • Loading branch information
xPaw committed May 9, 2024
1 parent a48fe41 commit 2bbd5d6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ jobs:
with:
path: artifacts

- name: Rename nupkg
run: mv artifacts/nupkg/ValvePak.*.nupkg artifacts/ValvePak.nupkg

- name: Display artifacts folder structure
run: ls -Rl
working-directory: artifacts
Expand All @@ -66,9 +69,9 @@ jobs:
uses: softprops/action-gh-release@v2
with:
draft: true
files: artifacts/nupkg/*
files: artifacts/ValvePak.nupkg
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Publish to NuGet Gallery
run: dotnet nuget push artifacts/nupkg/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json
run: dotnet nuget push artifacts/ValvePak.nupkg --api-key "${{ secrets.NUGET_API_KEY }}" --source "https://api.nuget.org/v3/index.json"

0 comments on commit 2bbd5d6

Please sign in to comment.