Skip to content

Commit 70dcb7c

Browse files
committed
If I understand this, https://docs.myget.org/docs/reference/symbols, if you include a symbol source and api key, it should pick up the symbol packages by naming convention, and publish them appropriately.
1 parent 75e99f8 commit 70dcb7c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build/publish.proj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020
<Target Name="All">
2121
<Message Importance="high" Text="Publish: All started" />
2222
<ItemGroup>
23-
<PackagePaths Include="$(PackDir)*.nupkg" />
23+
<PackagePaths Include="$(PackDir)*.nupkg" Exclude="$(PackDir)*symbols.nupkg" />
2424
</ItemGroup>
25-
<Exec Command="$(NuGet) push %(PackagePaths.FullPath) -ApiKey $(NuGetApiKey) -Source https://www.myget.org/F/azure-powershell/api/v2/package" />
25+
<Exec Command="$(NuGet) push %(PackagePaths.FullPath) -ApiKey $(NuGetApiKey) -Source https://www.myget.org/F/azure-powershell/api/v2/package -SymbolSource https://www.myget.org/F/azure-powershell/symbols/api/v2/package -SymbolApiKey $(NuGetApiKey)" />
2626
<PropertyGroup>
2727
<!-- https://stackoverflow.com/a/41618979/294804 -->
2828
<ReleaseCommand>[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; Invoke-WebRequest -Uri 'https://api.github.com/repos/Azure/azure-powershell-common/releases' -Headers @{ 'Authorization' = 'Token $(GitHubAccessToken)' } -Method Post -Body (ConvertTo-Json @{ 'tag_name' = '$(ReleaseVersion)'; 'target_commitish' = '$(CommitId)'; 'name' = '$(ReleaseVersion)'; 'body' = 'Azure PowerShell Common version $(ReleaseVersion)'; 'draft' = $false; 'prerelease' = $false })</ReleaseCommand>

0 commit comments

Comments
 (0)