Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Commit

Permalink
Revert "Disable publish to dotnet/versions in 3.1" (#28172)
Browse files Browse the repository at this point in the history
* Revert "Disable publish to dotnet/versions in 3.1 (#28171)"

This reverts commit 14ccaad.

* Update finalize-publish.yml
  • Loading branch information
wtgodbe authored May 12, 2021
1 parent 14ccaad commit 93f15e2
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 34 deletions.
40 changes: 20 additions & 20 deletions eng/finalize-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,27 +38,27 @@ jobs:
artifactName: PackageArtifacts
downloadPath: ${{ parameters.artifactsDir }}/nuget

- powershell: |
$prefix = "refs/heads/"
$branch = "$(Build.SourceBranch)"
$branchName = $branch
if ($branchName.StartsWith($prefix))
{
$branchName = $branchName.Substring($prefix.Length)
}
Write-Host "For Build.SourceBranch $branch, FullBranchName is $branchName"
Write-Host "##vso[task.setvariable variable=FullBranchName;]$branchName"
ls -R ${{ parameters.artifactsDir }}/nuget/*.nupkg
$(Build.SourcesDirectory)/UpdatePublishedVersions.ps1 `
-gitHubUser ${{ parameters.gitHubUser }} `
-gitHubEmail ${{ parameters.gitHubEmail }} `
-gitHubAuthToken ${{ parameters.gitHubAuthToken }} `
-versionsRepoOwner ${{ parameters.versionsRepoOwner }} `
-versionsRepo ${{ parameters.versionsRepo }} `
-versionsRepoPath build-info/dotnet/coreclr/$branchName `
-nupkgPath ${{ parameters.artifactsDir }}/nuget/*.nupkg
#- powershell: |
# $prefix = "refs/heads/"
# $branch = "$(Build.SourceBranch)"
# $branchName = $branch
# if ($branchName.StartsWith($prefix))
# {
# $branchName = $branchName.Substring($prefix.Length)
# }
# Write-Host "For Build.SourceBranch $branch, FullBranchName is $branchName"
# Write-Host "##vso[task.setvariable variable=FullBranchName;]$branchName"
# ls -R ${{ parameters.artifactsDir }}/nuget/*.nupkg
# $(Build.SourcesDirectory)/UpdatePublishedVersions.ps1 `
# -gitHubUser ${{ parameters.gitHubUser }} `
# -gitHubEmail ${{ parameters.gitHubEmail }} `
# -gitHubAuthToken ${{ parameters.gitHubAuthToken }} `
# -versionsRepoOwner ${{ parameters.versionsRepoOwner }} `
# -versionsRepo ${{ parameters.versionsRepo }} `
# -versionsRepoPath build-info/dotnet/coreclr/$branchName `
# -nupkgPath ${{ parameters.artifactsDir }}/nuget/*.nupkg

displayName: Run UpdatePublishedVersions.ps1
# displayName: Run UpdatePublishedVersions.ps1

- task: CopyFiles@2
displayName: Copy Files to $(Build.StagingDirectory)\BuildLogs
Expand Down
28 changes: 14 additions & 14 deletions eng/pipelines/internal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,20 +50,20 @@ stages:
# product build job), and publishes them to the build assets
# registry. Its dependencies should be updated to include all of the
# official builds if we add more platform/arch combinations.
# - template: /eng/finalize-publish.yml
# parameters:
# dependsOn:
# - build_Linux_arm_release
# - build_Linux_arm64_release
# - build_Linux_musl_x64_release
# - build_Linux_musl_arm64_release
# - build_Linux_rhel6_x64_release
# - build_Linux_x64_release
# - build_OSX_x64_release
# - build_Windows_NT_x64_release
# - build_Windows_NT_x86_release
# - build_Windows_NT_arm_release
# - build_Windows_NT_arm64_release
- template: /eng/finalize-publish.yml
parameters:
dependsOn:
- build_Linux_arm_release
- build_Linux_arm64_release
- build_Linux_musl_x64_release
- build_Linux_musl_arm64_release
- build_Linux_rhel6_x64_release
- build_Linux_x64_release
- build_OSX_x64_release
- build_Windows_NT_x64_release
- build_Windows_NT_x86_release
- build_Windows_NT_arm_release
- build_Windows_NT_arm64_release

- ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
- template: /eng/common/templates/post-build/post-build.yml
Expand Down

0 comments on commit 93f15e2

Please sign in to comment.