Skip to content

Commit 49ef9f6

Browse files
authored
Merge pull request #10 from carldebilly/dev/packaging
Symbol package publishing
2 parents 3659bf3 + 8e921ba commit 49ef9f6

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99

1010
jobs:
1111
build:
12-
runs-on: windows-latest
12+
runs-on: ubuntu-latest
1313

1414
steps:
1515
- name: Checkout code
@@ -35,7 +35,7 @@ jobs:
3535
run: |
3636
$OutputDir = "nuget-packages"
3737
New-Item -ItemType Directory -Force -Path $OutputDir
38-
Get-ChildItem -Path . -Recurse -Filter *.nupkg | Copy-Item -Destination $OutputDir
38+
Get-ChildItem -Path . -Recurse -Include *.nupkg,*.snupkg | Copy-Item -Destination $OutputDir
3939
4040
- name: Upload NuGet packages as artifacts
4141
uses: actions/upload-artifact@v4
@@ -71,3 +71,4 @@ jobs:
7171
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
7272
run: |
7373
dotnet nuget push ./nuget-packages/*.nupkg --api-key $NUGET_API_KEY --source https://api.nuget.org/v3/index.json
74+
dotnet nuget push ./nuget-packages/*.snupkg --api-key $NUGET_API_KEY --source https://api.nuget.org/v3/index.json

Directory.Build.props

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
<PackageTags>http server lightweight self-contained sse iot desktop tools diagnostics</PackageTags>
2222
<IncludeSymbols>true</IncludeSymbols>
2323
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
24+
<EmbedUntrackedSources>true</EmbedUntrackedSources>
25+
<ContinuousIntegrationBuild Condition="'$(ContinuousIntegrationBuild)'=='' and '$(CI)'!=''">true</ContinuousIntegrationBuild>
2426

2527
<!-- General build properties -->
2628
<Nullable>enable</Nullable>

version.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
"^refs/heads/release/\\d+(?:\\.\\d+)?$"
1010
],
1111
"cloudBuild": {
12-
"setAllVariables": true,
12+
"setAllVariables": false,
1313
"buildNumber": {
14-
"enabled": true
14+
"enabled": false
1515
}
1616
},
1717
"release": {

0 commit comments

Comments
 (0)