Skip to content

Commit

Permalink
FFPublishing
Browse files Browse the repository at this point in the history
  • Loading branch information
credfeto committed Jul 19, 2024
1 parent 70320ed commit 4ea499b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .github/actions/dotnet-publish/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ runs:
- name: "Dotnet: Pack For Octopus"
working-directory: ${{github.workspace}}/src/${{inputs.OCTOPUS_DEPLOY_PACKAGE}}
shell: bash
run: dotnet publish -warnaserror --configuration:Release -r:${{inputs.PLATFORM}} --self-contained -p:NoWarn=NETSDK1179 -p:SuppressNETCoreSdkPreviewMessage=true -p:PublishSingleFile=true -p:PublishAot=false -p:PublishReadyToRun=False -p:PublishReadyToRunShowWarnings=True -p:DisableSwagger=False -p:TreatWarningsAsErrors=True "-p:Version=${{inputs.BUILD_VERSION}}" -p:IncludeNativeLibrariesForSelfExtract=false "-p:IsProduction=${{inputs.PRODUCTION_BUILD}}" -p:SolutionDir=..\\ --output ../server-dist/${{inputs.PLATFORM}} -nodeReuse:False ${{env.DOTNET_RELEASE_DEFINES}}
run: dotnet publish -warnaserror --configuration:Release -r:${{inputs.PLATFORM}} --self-contained -p:NoWarn=NETSDK1179 -p:SuppressNETCoreSdkPreviewMessage=true -p:PublishSingleFile=true -p:PublishAot=false -p:PublishReadyToRun=False -p:PublishReadyToRunShowWarnings=True -p:DisableSwagger=False -p:TreatWarningsAsErrors=True "-p:Version=${{inputs.BUILD_VERSION}}" -p:IncludeNativeLibrariesForSelfExtract=false "-p:IsProduction=${{inputs.PRODUCTION_BUILD}}" "-p:FFPublishing:True" -p:SolutionDir=..\\ --output ../server-dist/${{inputs.PLATFORM}} -nodeReuse:False ${{env.DOTNET_RELEASE_DEFINES}}
env:
ReleaseNotes: ${{inputs.RELEASE_NOTES}}
DOTNET_ROOT: "${{github.workspace}}/.dotnet/${{github.sha}}-${{github.run_id}}-${{github.run_number}}-${{github.run_attempt}}"
Expand All @@ -52,7 +52,6 @@ runs:
DOTNET_TC_CallCountingDelayMs: "0"
DOTNET_TieredPGO: "1"
MSBUILDTERMINALLOGGER: "auto"
WarningsNotAsErrors: "NU1901;NU1902;NU1903;NU1904"

- name: "Dotnet: Zip Packages for Octopus"
working-directory: ${{github.workspace}}/src/server-dist/${{inputs.PLATFORM}}
Expand Down
5 changes: 5 additions & 0 deletions src/FunFair.props
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,9 @@
<None Include="$(SolutionDir)..\README.md" Pack="true" PackagePath="\" />
</ItemGroup>

<!-- Disable Nuget errors on publishing -->
<PropertyGroup Condition="$(FFPublishing) == 'True'">
<WarningsNotAsErrors>NU1901;NU1902;NU1903;NU1904</WarningsNotAsErrors>
</PropertyGroup>

</Project>

0 comments on commit 4ea499b

Please sign in to comment.