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

- name: Restore dependencies
if: steps.dotnet_affected.outputs.has_output == 'true'
run: |
for proj in $(cat affected.proj); do
dotnet restore $proj
done
- name: Build affected projects
if: steps.dotnet_affected.outputs.has_output == 'true'
run: |
for proj in $(cat affected.proj); do
dotnet build $proj --configuration Release
done

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

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

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

0 comments on commit 3116b65

Please sign in to comment.