Skip to content

Commit

Permalink
ci: fix nuget auth token
Browse files Browse the repository at this point in the history
  • Loading branch information
matigramirez committed Oct 9, 2023
1 parent c38378b commit 806d414
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/nuget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,19 @@ jobs:
nuget:
name: Publish NuGet package
runs-on: ubuntu-latest
env:
NUGET_API_KEY: ${{secrets.NUGET_API_KEY}}

steps:
- uses: actions/checkout@v3
- uses: actions/setup-dotnet@v3
with:
dotnet-version: "7.0.x"
source-url: https://api.nuget.org/v3/index.json
env:
NUGET_AUTH_TOKEN: ${{secrets.NUGET_AUTH_TOKEN}}

- run: dotnet build ./src/Parsec --configuration Release
- name: Create NuGet package
run: dotnet pack ./src/Parsec --configuration Release

- name: Publish NuGet package

run: dotnet nuget push ./src/Parsec/bin/Release/*.nupkg --api-key "$NUGET_API_KEY"
run: dotnet nuget push ./src/Parsec/bin/Release/*.nupkg --api-key "$NUGET_AUTH_TOKEN"

0 comments on commit 806d414

Please sign in to comment.