Move package creating from build.fsproj to github actions

Merged
RO
2y ago
+39-147

Changes:

  • Package creating is moved from build.fsproj to github actions via dotnet pack
  • Version for nuget package now is getting from <Version>6.0.0</Version> property in NSubstitute.csproj, not from git tags
  • Update github actions for separate release packages and documentation
  • Unusable code is removed from build.fsproj
  • Added -p:CI=true to enable following properties for Deterministic Build and Source Link from NSubstitute.csproj
  <PropertyGroup Condition="'$(CI)' == 'True'">
    <!--Deterministic Build and Source Link settings -->
    <ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
    <EmbedUntrackedSources>true</EmbedUntrackedSources>
    <IncludeSymbols>true</IncludeSymbols>
    <SymbolPackageFormat>snupkg</SymbolPackageFormat>
  </PropertyGroup>

after this change build.fsproj will be used only for documentation examples validation & documentation static generation

related https://github.com/nsubstitute/NSubstitute/issues/830