Skip to content

Commit

Permalink
replace set-output
Browse files Browse the repository at this point in the history
  • Loading branch information
ManfredLange committed Sep 21, 2023
1 parent 79fb7f9 commit 3fc57dc
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ jobs:
- name: Publish NuGet package
id: publish
run: |
pwd | echo
dotnet pack --configuration Release --no-build --no-restore
echo "::set-output name=nuget-package-path::$(find . -name '*.nupkg' -print -quit)"
echo "NUGET_PACKAGE_PATH=$(find . -name '*.nupkg' -print -quit)"
echo "NUGET_PACKAGE_PATH=$(find . -name '*.nupkg' -print -quit)" >> "$GITHUB_OUTPUT"
deploy:
needs:
Expand All @@ -62,7 +62,8 @@ jobs:
# if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' && github.event.head_commit.modified || contains('Directory.Build.props') }}
steps:
- name: Publish NuGet package
env:
NUGET_PACKAGE_PATH: ${{ needs.build-and-test.outputs.NUGET_PACKAGE_PATH }}
run: |
pwd
ls -la
dotnet nuget push ${{ needs.build-and-test.outputs.nuget-package-path }} --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json
echo "NuGet package path: $NUGET_PACKAGE_PATH"
dotnet nuget push $NUGET_PACKAGE_PATH --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json

0 comments on commit 3fc57dc

Please sign in to comment.