Skip to content

Commit

Permalink
no longer release packages to ADO (dotnet#7907)
Browse files Browse the repository at this point in the history
* no longer release packages to ADO

* remove PublishToAzureDevOps
  • Loading branch information
herohua authored Feb 23, 2022
1 parent 1470d64 commit 81aa0b5
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 20 deletions.
1 change: 0 additions & 1 deletion azure-pipelines-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,6 @@ steps:
env:
NUGETAPIKEY: $(NugetAPIKey)
CHOCO_TOKEN: $(ChocoleteyPublishToken)
AZDEVOPSPAT: $(AzureDevOpsFeedPAT)
TOKEN: $(ServiceAccountGithubToken)

- task: ComponentGovernanceComponentDetection@0
Expand Down
2 changes: 0 additions & 2 deletions azure-pipelines-stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,6 @@ steps:
failOnStderr: true
filePath: 'tools\Deployment\deploy.ps1'
arguments: '-targets pack,release'
env:
AZDEVOPSPAT: $(AzureDevOpsFeedPAT)

- task: PublishBuildArtifacts@1
condition: always()
Expand Down
7 changes: 0 additions & 7 deletions tools/Deployment/config.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,6 @@ $docfx = @{
docfxJson = "$homeDir\Documentation\docfx.json"
}

$azdevops = @{
ppeName = "docs-build-v2-ppe"
ppeUrl = "https://docfx.pkgs.visualstudio.com/docfx/_packaging/docs-build-v2-ppe/nuget/v3/index.json"
prodName = "docs-build-v2-prod"
prodUrl = "https://docfx.pkgs.visualstudio.com/docfx/_packaging/docs-build-v2-prod/nuget/v3/index.json"
}

$choco = @{
homeDir = "$homeDir\src\nuspec\chocolatey\docfx"
nuspec = "$homeDir\src\nuspec\chocolatey\docfx\docfx.nuspec"
Expand Down
6 changes: 0 additions & 6 deletions tools/Deployment/deploy-tasks.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,6 @@ function PublishToNuget {
}
}

function PublishToAzureDevOps {
param($nugetCommand, $sourceName, $sourceUrl, $artifactsFolder, $token)
& $nugetCommand sources add -Name $sourceName -Source $sourceUrl -Username anything -Password $token
PublishToNuget $nugetCommand $sourceUrl $artifactsFolder
}

function UpdateChocoConfig {
param($chocoScriptPath, $chocoNuspecPath, $version, $hash)
$chocoScript = Get-Content $chocoScriptPath -Encoding UTF8 -Raw
Expand Down
4 changes: 0 additions & 4 deletions tools/Deployment/deploy.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -69,16 +69,12 @@ try {
if (IsReleaseNoteVersionChanged $gitCommand $docfx.releaseNotePath)
{
PackAssetZip $docfx.releaseFolder $docfx.assetZipPath
PublishToAzureDevOps $nugetCommand $azdevops.prodName $azdevops.prodUrl $docfx.artifactsFolder $env:AZDEVOPSPAT
PublishToNuget $nugetCommand $nuget."nuget.org" $docfx.artifactsFolder $env:NUGETAPIKEY
PublishToGithub $docfx.assetZipPath $docfx.releaseNotePath $docfx.sshRepoUrl $env:TOKEN
PublishToChocolatey $chocoCommand $docfx.releaseNotePath $docfx.assetZipPath $choco.chocoScript $choco.nuspec $choco.homeDir $env:CHOCO_TOKEN
} else {
Write-Host "`$releaseNotePath $($docfx.releaseNotePath) hasn't been changed. Ignore to publish package." -ForegroundColor Yellow
}
} else {
# Always do publish for dev release
PublishToAzureDevOps $nugetCommand $azdevops.ppeName $azdevops.ppeUrl $docfx.artifactsFolder $env:AZDEVOPSPAT
}
}
}
Expand Down

0 comments on commit 81aa0b5

Please sign in to comment.