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 ff73004 commit 35a7939
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/deploy-nuget-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,22 @@ jobs:
echo "No affected projects."
echo "has_output=false" >> $GITHUB_OUTPUT
fi

- name: Restore dependencies
if: steps.dotnet_affected.outputs.has_output == 'true'
run: dotnet restore affected.proj

- name: Build affected projects
if: steps.dotnet_affected.outputs.has_output == 'true'
run: dotnet build affected.proj --configuration Release

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

run: dotnet test affected.proj --no-build
- name: Pack affected projects
if: steps.dotnet_affected.outputs.has_output == 'true'
run: dotnet pack affected.proj
run: dotnet pack affected.proj --no-build --configuration Release

- name: Push NuGet packages
if: steps.dotnet_affected.outputs.has_output == 'true'
Expand Down

0 comments on commit 35a7939

Please sign in to comment.