diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 7dffa60..232735e 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -29,33 +29,4 @@ stages: ################## ##### DEPLOY ##### ################## -- stage: DeployPushInternalFeed - condition: and(succeeded(), or(startsWith(variables['build.sourceBranch'], 'refs/heads/release/'), eq(variables['build.sourceBranch'], 'refs/heads/master'))) - displayName: 'Deploy:NuGet Push Internal Feed' - dependsOn: - - Test - - Pack - jobs: - - deployment: MozJpegSharp - pool: - vmImage: 'ubuntu-latest' - environment: 'internalfeed' - strategy: - runOnce: - deploy: - steps: - # see https://docs.microsoft.com/en-us/azure/devops/pipelines/artifacts/pipeline-artifacts?view=azure-devops&tabs=yaml#artifacts-in-release-and-deployment-jobs - # we want to download the specific artifact we need so skip auto download - - download: none - - task: DownloadPipelineArtifact@2 - inputs: - buildType: 'current' - artifactName: 'nuget' - targetPath: '$(System.DefaultWorkingDirectory)' - - task: DotNetCoreCLI@2 - displayName: 'Push to Feed' - inputs: - command: 'push' - searchPatternPush: '$(System.DefaultWorkingDirectory)/**/*.nupkg;$(System.DefaultWorkingDirectory)/**/*.snupkg' - nuGetFeedType: 'internal' - feedPublish: 'MozJpegSharp/MozJpegSharp' +- template: build/stages/deploy.yml