Skip to content

Commit

Permalink
Update deploy-nuget-packages.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
phamhongphuc1403 authored May 31, 2024
1 parent 5b9df0b commit ff73004
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/deploy-nuget-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: Determine affected projects
id: dotnet_affected
run: |
dotnet new tool-manifest && dotnet tool install dotnet-affected && touch affected.txt
dotnet new tool-manifest && dotnet tool install dotnet-affected
if dotnet affected -f text traversal \
--from "${{ steps.setSHAs.outputs.base }}" \
Expand All @@ -51,3 +51,11 @@ jobs:
- name: Test affected projects
if: steps.dotnet_affected.outputs.has_output == 'true'
run: dotnet test affected.proj

- name: Pack affected projects
if: steps.dotnet_affected.outputs.has_output == 'true'
run: dotnet pack affected.proj

- name: Push NuGet packages
if: steps.dotnet_affected.outputs.has_output == 'true'
run: dotnet nuget push **/Release/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json

0 comments on commit ff73004

Please sign in to comment.