Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove package push from build #602

Merged
merged 1 commit into from
Sep 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"