Skip to content

Commit

Permalink
Update publish.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
ElanHasson committed Apr 24, 2024
1 parent d565eb1 commit 92a6f3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:

- name: dotnet pack
if: ${{ github.event_name != 'release' }}
run: dotnet pack ${{ env.TargetProject }} --configuration Release -p:PackageVersion="${{ github.event.release.tag_name || github.ref_name }}" --output ${{ env.NuGetDirectory }}
run: dotnet pack ${{ env.TargetProject }} --configuration Release -p:PackageVersion="${{ github.event_name != 'release' && github.event.release.tag_name || github.ref_name }}" --output ${{ env.NuGetDirectory }}

- name: dotnet pack (release)
if: ${{ github.event_name == 'release' && github.ref_type == 'tag' || github.event.release.tag_name }}
Expand Down

0 comments on commit 92a6f3a

Please sign in to comment.