Skip to content

Commit 7d95d2d

Browse files
committed
ci: fix symbol generation options
1 parent 1d72243 commit 7d95d2d

2 files changed

Lines changed: 3 additions & 8 deletions

File tree

.github/workflows/build-debug.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,4 @@ jobs:
2424
# Native AOT tests
2525
- run: dotnet publish -r linux-x64 tests/ConsoleAppFramework.NativeAotTests/ConsoleAppFramework.NativeAotTests.csproj
2626
- run: tests/ConsoleAppFramework.NativeAotTests/bin/Release/net10.0/linux-x64/publish/ConsoleAppFramework.NativeAotTests
27-
28-
- run: dotnet pack -c Release --no-build -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg -o $GITHUB_WORKSPACE/artifacts
27+
- run: dotnet pack -c Release --no-build -p:IncludeSymbols=true -o $GITHUB_WORKSPACE/artifacts

.github/workflows/build-release.yaml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ jobs:
2727
# Native AOT tests
2828
- run: dotnet publish -r linux-x64 tests/ConsoleAppFramework.NativeAotTests/ConsoleAppFramework.NativeAotTests.csproj
2929
- run: tests/ConsoleAppFramework.NativeAotTests/bin/Release/net10.0/linux-x64/publish/ConsoleAppFramework.NativeAotTests
30-
# pack nuget
31-
- run: dotnet pack -c Release --no-build -p:Version=${{ inputs.tag }} -o ./publish
30+
# pack nuget (.nupkg and .symbols.nupkg will be created)
31+
- run: dotnet pack -c Release --no-build -p:Version=${{ inputs.tag }} -p:IncludeSymbols=true -o ./publish
3232
- uses: Cysharp/Actions/.github/actions/upload-artifact@main
3333
with:
3434
name: nuget
@@ -44,10 +44,6 @@ jobs:
4444
if: ${{ !inputs.dry-run }}
4545
env:
4646
NUGET_KEY: ${{ steps.login.outputs.NUGET_API_KEY }}
47-
- run: dotnet nuget push "./publish/*.snupkg" --skip-duplicate -s https://api.nuget.org/v3/index.json -k "${NUGET_KEY}"
48-
if: ${{ !inputs.dry-run }}
49-
env:
50-
NUGET_KEY: ${{ steps.login.outputs.NUGET_API_KEY }}
5147

5248
# release
5349
create-release:

0 commit comments

Comments
 (0)