Skip to content

Commit

Permalink
print absolute package path
Browse files Browse the repository at this point in the history
  • Loading branch information
ManfredLange committed Sep 23, 2023
1 parent 02d9933 commit af0a163
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ jobs:
id: publish
run: |
dotnet pack --configuration Release --no-build --no-restore
NUPKG_PATH=$(find . -name '*.nupkg' -type f -execdir readlink -f {} \;)
echo "NuGet package path: $NUPKG_PATH"
echo "NUGET_PACKAGE_PATH=$(find . -name '*.nupkg' -print -quit)"
echo "NUGET_PACKAGE_PATH=$(find . -name '*.nupkg' -print -quit)" >> "$GITHUB_OUTPUT"
Expand All @@ -74,6 +76,7 @@ jobs:
NUGET_PACKAGE_PATH: ${{ needs.build-and-test.outputs.nuget-package-path }}
run: |
echo "NuGet package path: $NUGET_PACKAGE_PATH"
echo "NUGET_PACKAGE_PATH=$(find . -name '*.nupkg' -print -quit)"
dotnet nuget push $NUGET_PACKAGE_PATH --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json
# run: |
# echo "NuGet package path: $NUGET_PACKAGE_PATH"
Expand Down

0 comments on commit af0a163

Please sign in to comment.