Skip to content

Commit 5bb3d6f

Browse files
committed
Separate build and package
1 parent c581007 commit 5bb3d6f

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,12 @@
5656
"run": "dotnet restore --locked-mode"
5757
},
5858
{
59-
"name": "Build and package",
60-
"run": "dotnet build EngageSoftware.Dnn.Logging.sln --no-restore --configuration ${{ matrix.configuration }} -p:VersionSuffix=${{ env.VERSION_SUFFIX }} --output dist/"
59+
"name": "Build",
60+
"run": "dotnet build EngageSoftware.Dnn.Logging.sln --no-restore --configuration ${{ matrix.configuration }} -p:VersionSuffix=${{ env.VERSION_SUFFIX }}"
61+
},
62+
{
63+
"name": "Package",
64+
"run": "dotnet pack EngageSoftware.Dnn.Logging.sln --no-build --configuration ${{ matrix.configuration }} -p:VersionSuffix=${{ env.VERSION_SUFFIX }} --output dist/"
6165
},
6266
{
6367
"name": "Upload build artifacts",
@@ -68,7 +72,7 @@
6872
},
6973
{
7074
"name": "Push packages to NuGet",
71-
"run": "dotnet nuget push dist/ --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_PUSH_KEY }}"
75+
"run": "dotnet nuget push dist/ --source https://api.nuget.org/v3/index.json --symbol-source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_PUSH_KEY }}"
7276
}
7377
]
7478
}

EngageSoftware.Dnn.Logging/EngageSoftware.Dnn.Logging.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<VersionPrefix>0.1.0</VersionPrefix>
2020
<GenerateDocumentationFile>true</GenerateDocumentationFile>
2121
<PublishRepositoryUrl>true</PublishRepositoryUrl>
22-
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
22+
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
2323
<EmbedUntrackedSources>true</EmbedUntrackedSources>
2424
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
2525
<IncludeSymbols>true</IncludeSymbols>

0 commit comments

Comments
 (0)