Skip to content

Commit

Permalink
ci: fix nuget
Browse files Browse the repository at this point in the history
  • Loading branch information
matigramirez committed Oct 9, 2023
1 parent 806d414 commit ad8013f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/nuget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,17 @@ jobs:

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_AUTH_TOKEN"
env:
NUGET_AUTH_TOKEN: ${{secrets.NUGET_AUTH_TOKEN}}
run: dotnet nuget push ./src/Parsec/bin/Release/*.nupkg --api-key "$NUGET_AUTH_TOKEN" --source https://api.nuget.org/v3/index.json

0 comments on commit ad8013f

Please sign in to comment.