|
1 | 1 | parameters: |
2 | | - push: false |
3 | 2 | sign: false |
4 | 3 | nuspecProperties: '' |
5 | 4 |
|
@@ -85,13 +84,38 @@ steps: |
85 | 84 | packDestination: '$(Build.ArtifactStagingDirectory)\$(BuildConfiguration)' |
86 | 85 | buildProperties: '${{ parameters.nuspecProperties }}' |
87 | 86 |
|
88 | | -- ${{ if eq(parameters.push, 'true') }}: |
89 | | - - task: DotNetCoreCLI@2 |
90 | | - displayName: dotnet push |
91 | | - inputs: |
92 | | - command: push |
93 | | - packagesToPush: '$(Build.ArtifactStagingDirectory)/$(BuildConfiguration)/*.nupkg' |
94 | | - publishVstsFeed: '54754426-96db-4f6e-8a3a-64265d1cc147' |
| 87 | +- task: DotNetCoreCLI@2 |
| 88 | + displayName: dotnet push |
| 89 | + inputs: |
| 90 | + command: push |
| 91 | + packagesToPush: '$(Build.ArtifactStagingDirectory)/$(BuildConfiguration)/*.nupkg' |
| 92 | + publishVstsFeed: '54754426-96db-4f6e-8a3a-64265d1cc147' |
| 93 | + condition: eq(variables['PushNupkg'], 'true') |
| 94 | + |
| 95 | +- task: CopyFiles@2 |
| 96 | + displayName: Copy netfx files into tarball |
| 97 | + inputs: |
| 98 | + sourceFolder: '$(Build.SourcesDirectory)\CredentialProvider.Microsoft\bin\$(BuildConfiguration)\net461\' |
| 99 | + contents: '**\*' |
| 100 | + targetFolder: '$(Build.ArtifactStagingDirectory)\tarball\plugins\netfx\CredentialProvider.Microsoft\' |
| 101 | + cleanTargetFolder: true |
| 102 | + |
| 103 | +- task: CopyFiles@2 |
| 104 | + displayName: Copy netcore files into tarball |
| 105 | + inputs: |
| 106 | + sourceFolder: '$(Build.SourcesDirectory)\CredentialProvider.Microsoft\bin\$(BuildConfiguration)\netcoreapp2.1\publish\' |
| 107 | + Contents: '**\*' |
| 108 | + targetFolder: '$(Build.ArtifactStagingDirectory)\tarball\plugins\netcore\CredentialProvider.Microsoft\' |
| 109 | + |
| 110 | +- task: ArchiveFiles@2 |
| 111 | + displayName: Create tarball |
| 112 | + inputs: |
| 113 | + rootFolderOrFile: '$(Build.ArtifactStagingDirectory)\tarball\' |
| 114 | + includeRootFolder: false |
| 115 | + archiveType: 'tar' |
| 116 | + tarCompression: 'gz' |
| 117 | + archiveFile: '$(Build.ArtifactStagingDirectory)\$(BuildConfiguration)\Microsoft.NuGet.CredentialProvider.tar.gz' |
| 118 | + replaceExistingArchive: true |
95 | 119 |
|
96 | 120 | - task: PublishBuildArtifacts@1 |
97 | 121 | displayName: Publish Artifact $(Build.BuildNumber) |
|
0 commit comments