Pack nugets with Github Actions

Also add SourceLink
This commit is contained in:
Shay Rojansky
2020-06-18 01:29:27 +02:00
parent d5511c6f6c
commit 40d6b1d78f
2 changed files with 14 additions and 3 deletions

View File

@@ -17,3 +17,12 @@ jobs:
- name: Test
run: dotnet test
- name: Pack
run: dotnet pack --configuration Release --output nupkgs -p:ContinuousIntegrationBuild=true
- name: Upload artifacts
uses: actions/upload-artifact@v1
with:
name: EFCore.NamingConventions
path: nupkgs

View File

@@ -1,8 +1,10 @@
<Project>
<PropertyGroup>
<LangVersion>8.0</LangVersion>
<SuppressNETCoreSdkPreviewMessage>true</SuppressNETCoreSdkPreviewMessage>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All" />
</ItemGroup>
</Project>