Skip to content

Commit

Permalink
Build and publish symbol nuget packages (#367)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasongin authored Sep 1, 2024
1 parent 259936d commit 2a8e765
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .ado/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ jobs:
ConnectedServiceName: ESRP-JsHost2
FolderPath: $(Build.SourcesDirectory)/out/pkg
Pattern: |
**/Microsoft.JavaScript.NodeApi.*.nupkg
**/Microsoft.JavaScript.NodeApi.*.*nupkg
UseMinimatch: true
signConfigType: inlineSignParams
inlineOperation: |
Expand All @@ -250,7 +250,7 @@ jobs:
sourceFolder: $(Build.SourcesDirectory)/out/pkg
targetFolder: $(Build.StagingDirectory)/pkg
contents: |
*.nupkg
*.*nupkg
*.tgz
- task: AzureArtifacts.manifest-generator-task.manifest-generator-task.ManifestGeneratorTask@0
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ jobs:
with:
name: ${{ matrix.os }}-${{ matrix.configuration }}-packages
path: |
out/pkg/*.nupkg
out/pkg/*.*nupkg
out/pkg/*.tgz
- name: Test
Expand Down
5 changes: 5 additions & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@
<SuppressNETCoreSdkPreviewMessage>true</SuppressNETCoreSdkPreviewMessage>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)' == 'Release'">
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
</PropertyGroup>

<PropertyGroup Condition=" '$(PublishAot)' == 'true' ">
<!-- Modify the build output paths when publishing for AOT. This enables separately compiling
AOT and non-AOT flavors of the same project, which is necessary because .NET 8 blocks
Expand Down

0 comments on commit 2a8e765

Please sign in to comment.