Skip to content

Commit

Permalink
Update ci-cd.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Mehdi Hadeli committed Jul 6, 2023
1 parent 33f9f92 commit 298b6d0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
run: dotnet build Vertical.Slice.Template.sln -c Release --no-restore

- name: Test
run: dotnet test Vertical.Slice.Template.sln
run: dotnet test Vertical.Slice.Template.sln --no-build

# https://www.meziantou.net/publishing-a-nuget-package-following-best-practices-using-github.htm
create_nuget:
Expand All @@ -69,11 +69,11 @@ jobs:
run: dotnet restore Vertical.Slice.Template.sln

- name: Build
run: dotnet build -c Release --no-restore
run: dotnet build Vertical.Slice.Template.sln -c Release --no-restore

# https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-pack
- name: Pack NuGet Package
run: dotnet pack --no-build --no-restore -c Release --output ${{ env.NuGetDirectory }}
run: dotnet pack Vertical.Slice.Template.sln --no-build --no-restore -c Release --output ${{ env.NuGetDirectory }}

# Publish the NuGet package as an artifact, so they can be used in the following jobs
- uses: actions/upload-artifact@v3
Expand Down

0 comments on commit 298b6d0

Please sign in to comment.