Skip to content

Commit

Permalink
Update publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mehdihadeli authored Aug 22, 2024
1 parent 8d31628 commit fae4bb3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ jobs:
- name: Restore dependencies
run: dotnet restore Vertical.Slice.Template.sln

- name: Build Version ${{ steps.nbgv.outputs.nugetpackageversion }}
run: dotnet build Vertical.Slice.Template.sln -c Release --no-restore /p:Version=${{ steps.nbgv.outputs.SemVer2 }}
- name: Build Version ${{ steps.nbgv.outputs.NuGetPackageVersion }}
run: dotnet build Vertical.Slice.Template.sln -c Release --no-restore /p:Version=${{ steps.nbgv.outputs.NuGetPackageVersion }}

# https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-pack
- name: Pack NuGet Package Version ${{ steps.nbgv.outputs.nugetpackageversion }}
- name: Pack NuGet Package Version ${{ steps.nbgv.outputs.NuGetPackageVersion }}
run: dotnet pack vertical-slice-template.csproj -c Release -o ${{ env.NuGetDirectory }}

# Publish the NuGet package as an artifact, so they can be used in the following jobs
Expand Down Expand Up @@ -93,5 +93,5 @@ jobs:
# Use --skip-duplicate to prevent errors if a package with the same version already exists.
# If you retry a failed workflow, already published packages will be skipped without error.
# https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-nuget-push
- name: Publish NuGet Package Version ${{ steps.nbgv.outputs.nugetpackageversion }}
- name: Publish NuGet Package Version ${{ steps.nbgv.outputs.NuGetPackageVersion }}
run: dotnet nuget push ${{ env.NuGetDirectory }}/*.nupkg --skip-duplicate --source ${{ env.FEED_SOURCE }} --api-key ${{ env.FEED_API_KEY }}

0 comments on commit fae4bb3

Please sign in to comment.