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

Commit

Permalink
[ci] Enable pushing NuGet package to xamarin-impl feed
Browse files Browse the repository at this point in the history
  • Loading branch information
emaf committed Jun 27, 2022
1 parent 6dc80d0 commit 6e357b6
Showing 1 changed file with 25 additions and 29 deletions.
54 changes: 25 additions & 29 deletions build/stages/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,35 +30,31 @@ stages:
GitHub.FileStatuses: true
GitHub.ArtifactsTraversal: 'TopLevel'

# TODO:
# Job disabled until we implement pushing to xamarin-impl as a testing feed.
# Right now the packages will only be pushed to nuget.org through the System.Net.Mqtt release pipeline
# - job: Push
# displayName: 'Pack & Push'
# condition: and(succeeded(), eq(variables['Build.SourceBranch'], variables['MainBranch']))
# timeoutInMinutes: 10
# pool:
# name: $(WindowsPoolName)
# steps:
# - checkout: self
- job: Push
condition: and(succeeded(), eq(variables['Build.SourceBranch'], variables['MainBranch']))
timeoutInMinutes: 10
pool:
name: $(WindowsPoolName)
steps:
- checkout: self

# - task: DownloadBuildArtifacts@0
# displayName: 'Download Packages'
# inputs:
# artifactName: packages
# downloadPath: '$(Build.ArtifactStagingDirectory)'
- task: DownloadBuildArtifacts@0
displayName: 'Download Packages'
inputs:
artifactName: packages
downloadPath: '$(Build.ArtifactStagingDirectory)'

# - task: NuGetCommand@2
# displayName: 'NuGet Update'
# inputs:
# command: custom
# arguments: 'update -self'
- task: NuGetCommand@2
displayName: 'NuGet Update'
inputs:
command: custom
arguments: 'update -self'

# - task: NuGetCommand@2
# displayName: 'Push Packages'
# continueOnError: true
# inputs:
# command: push
# packagesToPush: '$(Build.ArtifactStagingDirectory)/packages/*.nupkg'
# nuGetFeedType: external
# publishFeedCredentials: '$(PackagesFeedCredentials)'
- task: NuGetCommand@2
displayName: 'Push Packages'
continueOnError: true
inputs:
command: push
packagesToPush: '$(Build.ArtifactStagingDirectory)/packages/*.nupkg'
nuGetFeedType: external
publishFeedCredentials: 'xamarin-impl public feed'

0 comments on commit 6e357b6

Please sign in to comment.