Skip to content

Commit dfacf3f

Browse files
committed
add symbol package
directory for nuget packages
1 parent f6479d5 commit dfacf3f

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

.github/workflows/build.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,14 @@ jobs:
3434
- name: Display .NET version
3535
run: dotnet --version
3636

37+
- name: Cache NuGet packages
38+
uses: actions/cache@v4
39+
with:
40+
path: ~/.nuget/packages
41+
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json', '**/*.csproj', '**/*.props', '**/*.targets') }}
42+
restore-keys: |
43+
${{ runner.os }}-nuget-
44+
3745
- name: Restore dependencies
3846
run: dotnet restore ./Cogs.Console.sln --verbosity minimal
3947

@@ -54,16 +62,18 @@ jobs:
5462
dotnet pack Cogs.Console/Cogs.Console.csproj
5563
--configuration ${{ env.BUILD_CONFIGURATION }}
5664
--no-build
57-
--no-restore
65+
-o ./nupkg
5866
-p:Version=${{ steps.version.outputs.BUILD_VERSION }}
5967
-p:PackageVersion=${{ steps.version.outputs.BUILD_VERSION }}
6068
-p:AssemblyVersion=${{ steps.version.outputs.BUILD_VERSION }}
6169
-p:FileVersion=${{ steps.version.outputs.BUILD_VERSION }}
6270
-p:InformationalVersion=${{ steps.version.outputs.BUILD_VERSION }}
71+
-p:IncludeSymbols=true
72+
-p:SymbolPackageFormat=snupkg
6373
6474
- name: Upload NuGet package as artifact (now only ONE package)
6575
uses: actions/upload-artifact@v4
6676
with:
6777
name: CogsNuGetPackage
68-
path: Cogs.Console/bin/Release/*.nupkg
78+
path: ./nupkg/*.nupkg
6979
if-no-files-found: error

0 commit comments

Comments
 (0)