Skip to content

Commit

Permalink
fic: fix nuget deployment issue
Browse files Browse the repository at this point in the history
  • Loading branch information
egbakou authored Dec 11, 2022
1 parent 76b85b0 commit a54f2a3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,18 @@ jobs:

- name: Build
run: dotnet build --configuration Release
working-directory: ./src

working-directory: ./src/RESTCountries.NET
- name: Run unit tests
run: dotnet test --configuration Release
working-directory: ./src
working-directory: ./tests/RESTCountries.NET.Tests

- name: Generate nuget package
run: dotnet pack --configuration Release -o nupkg
working-directory: ./src
working-directory: ./src/RESTCountries.NET

- name: Publish nuget package
run: find . -name *.nupkg -type f -print0 | xargs -0 -I pkg dotnet nuget push pkg -k $nuget_api_key -s "https://api.nuget.org/v3/index.json" --skip-duplicate
env:
nuget_api_key: ${{ secrets.NUGET_API_KEY }}
working-directory: ./src/nupkg
working-directory: ./src/RESTCountries.NET/nupkg

0 comments on commit a54f2a3

Please sign in to comment.