Skip to content

Commit

Permalink
Remove package push from build (#602)
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyGerlicher authored Sep 27, 2024
1 parent c93f485 commit e7eafe5
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions azure-pipelines-official.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,20 +53,6 @@ extends:
condition: always()
targetPath: $(ArtifactsDirectory)
artifactName: 'artifacts'
- output: nuget
displayName: 'Push NuGet Packages to nuget.org'
condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/v'))
packageParentPath: '$(ArtifactsDirectory)'
packagesToPush: '$(ArtifactsDirectory)/**/Microsoft.VisualStudio.SlnGen*.nupkg'
nuGetFeedType: 'external'
publishFeedCredentials: 'NuGet-1ES-Full'
- output: nuget
displayName: 'Push SlnGen.Corext'
condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/v'))
packageParentPath: '$(ArtifactsDirectory)'
packagesToPush: '$(ArtifactsDirectory)/**/SlnGen.Corext*.nupkg'
nuGetFeedType: 'external'
publishFeedCredentials: 'CloudBuild-Push'
steps:
- script: 'echo ##vso[task.setvariable variable=SignType;]Real'
displayName: 'Set SignType to Real for tagged commits'
Expand All @@ -85,19 +71,3 @@ extends:
inputs:
solution: '**\*.sln'
msbuildArgs: '$(MSBuildArgs)'
- task: AzureCLI@2
displayName: 'Push SlnGen.Corext'
inputs:
azureSubscription: 'CloudBuild-Push-v2'
scriptType: 'pscore'
scriptLocation: 'inlineScript'
inlineScript: |
# Get an access token for Azure DevOp (resource id is for AzDO)
$accessToken = az account get-access-token --query accessToken --resource 499b84ac-1321-427f-aa17-267ca6975798 -o tsv
# Set the access token as a secret, so it doesn't get leaked in the logs
Write-Host "##vso[task.setsecret]$accessToken"
# Override the apitoken of the nuget service connection, for the duration of this stage
# Service connection is for "microsoft.slngen Official"
Write-Host "##vso[task.setendpoint id=d8767bc1-a109-4cb7-80c2-6ac1ebf4346e;field=authParameter;key=apitoken]$accessToken"

0 comments on commit e7eafe5

Please sign in to comment.