Skip to content

Commit

Permalink
Fix publication (microsoft#271)
Browse files Browse the repository at this point in the history
* Fix publication
  • Loading branch information
gfs authored Nov 9, 2021
1 parent 354edb2 commit c5a4f6f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 20 deletions.
20 changes: 1 addition & 19 deletions Pipelines/nuget-pipelines/oss-find-squats.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,4 @@ jobs:
jobName: 'pack_oss_find_squats'
projectPath: 'src/oss-find-squats/oss-find-squats.csproj'
projectName: 'oss-find-squats'
- job: Release_oss_find_squats
dependsOn: pack_oss_find_squats
displayName: Publish oss-find-squats nuget
pool:
vmImage: 'ubuntu-latest'
steps:
- task: PublishPipelineArtifact@1
displayName: Publish Signed Artifacts to Pipeline
inputs:
targetPath: 'Packages'
artifact: 'OSS-Find-Squats Nuget'
- task: NuGetCommand@2
displayName: Push NuGet Packages
inputs:
command: 'push'
packagesToPush: 'Packages/*.nupkg'
nuGetFeedType: 'external'
publishFeedCredentials: 'CST-E Nuget CI'
verbosityPush: 'Normal'
publishToNuget: true
14 changes: 13 additions & 1 deletion Pipelines/templates/nuget-build-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ parameters:
- name: artifactName
type: string
default: 'Unsigned_Binaries'
- name: publishToNuget
type: boolean
default: false

jobs:
- job: ${{ parameters.jobName }}
Expand Down Expand Up @@ -85,4 +88,13 @@ jobs:
inputs:
PathtoPublish: 'Archives'
ArtifactName: '${{ parameters.artifactName }}'
publishLocation: 'Container'
publishLocation: 'Container'
- task: NuGetCommand@2
displayName: Push NuGet Packages
condition: and(succeeded(), eq('${{ parameters.publishToNuget }}', 'true'))
inputs:
command: 'push'
packagesToPush: 'Packages/*.nupkg'
nuGetFeedType: 'external'
publishFeedCredentials: 'CST-E Nuget CI'
verbosityPush: 'Normal'

0 comments on commit c5a4f6f

Please sign in to comment.