Skip to content

Commit

Permalink
fix(#1): Figure out how make ContinuousIntegrationBuild work
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Turtsevich committed Jul 3, 2023
1 parent 57ad151 commit dbae89f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ jobs:
- name: Build
run: dotnet build -c Release -p:ContinuousIntegrationBuild=true --no-restore ProjectionTools.sln
- name: Test
run: dotnet test -c Release --no-build --verbosity normal ProjectionTools.Tests/ProjectionTools.Tests.csproj
run: dotnet test -c Release --no-build --no-restore --verbosity normal ProjectionTools.Tests/ProjectionTools.Tests.csproj
- name: Pack nugets
run: dotnet pack -c Release -p:ContinuousIntegrationBuild=true --output . ProjectionTools/ProjectionTools.csproj
run: dotnet pack -c Release --no-build --no-restore --output . ProjectionTools/ProjectionTools.csproj
- name: Push nupkg to NuGet
run: dotnet nuget push "*.nupkg" --api-key ${{secrets.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json
9 changes: 6 additions & 3 deletions ProjectionTools/ProjectionTools.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<CodeAnalysisTreatWarningsAsErrors>true</CodeAnalysisTreatWarningsAsErrors>
<EnableNETAnalyzers>true</EnableNETAnalyzers>
<AnalysisLevel>latest</AnalysisLevel>
<DebugType>portable</DebugType>
<ContinuousIntegrationBuild Condition="'$(GITHUB_ACTIONS)' == 'true'">true</ContinuousIntegrationBuild>

<RunAnalyzersDuringBuild>true</RunAnalyzersDuringBuild>
<RunAnalyzersDuringLiveAnalysis>true</RunAnalyzersDuringLiveAnalysis>
Expand All @@ -35,13 +35,16 @@
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<PackageVersion>1.0.11</PackageVersion>
<PackageVersion>1.0.12</PackageVersion>
<!-- https://stackoverflow.com/questions/41713693/include-pdb-files-into-my-nuget-nupkg-files -->
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
<EmbedAllSources>true</EmbedAllSources>
<IsPackable>true</IsPackable>
</PropertyGroup>

<ItemGroup>
<SourceRoot Include="$(MSBuildThisFileDirectory)/"/>
<!-- https://github.com/dotnet/roslyn/issues/55860 -->
<SourceRoot Include="$(SolutionDir)" />
</ItemGroup>

<ItemGroup>
Expand Down

0 comments on commit dbae89f

Please sign in to comment.