Skip to content

Commit

Permalink
Exclude publish options when generating package (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
mthalman committed Dec 19, 2023
1 parent 3b9e407 commit 9eba1c6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ jobs:
- name: Pack
env:
PACKAGE_VERSION: ${{ github.event.inputs.packageVersion }}
run: dotnet pack -c Release -p:Version=$PACKAGE_VERSION Valleysoft.Dredge
run: dotnet pack -c Release -p:Version=$PACKAGE_VERSION Valleysoft.Dredge -p:IsPack=true

- name: Publish Package
run: dotnet nuget push "Valleysoft.Dredge/bin/Release/*.nupkg" -k ${{secrets.NUGET_ORG_API_KEY}} -s https://nuget.org
Expand Down
2 changes: 1 addition & 1 deletion src/Valleysoft.Dredge/Valleysoft.Dredge.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>

<PropertyGroup>
<PropertyGroup Condition=" '$(IsPack)' != 'true' ">
<PublishSingleFile>true</PublishSingleFile>
<PublishTrimmed>true</PublishTrimmed>
<PublishReadyToRun>true</PublishReadyToRun>
Expand Down

0 comments on commit 9eba1c6

Please sign in to comment.