Skip to content

Commit

Permalink
simplify release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
philo committed Sep 24, 2020
1 parent 8b3765a commit 3729659
Showing 1 changed file with 2 additions and 25 deletions.
27 changes: 2 additions & 25 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ trigger:
branches:
include:
- master
- refs/tags/*
stages:
- stage: build
displayName: Execute Build
Expand Down Expand Up @@ -47,32 +46,10 @@ stages:
command: "custom"
custom: "cake"
arguments: "--verbosity=$(cake.verbosity)"
- stage: PublishBeta
displayName: 'Publish Beta'
dependsOn: build
condition: and(Succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/heads/release/'))
jobs:
- job: PublishNuGet
displayName: 'Publish to NuGet'
pool:
vmImage: windows-latest
steps:
- task: DownloadBuildArtifacts@0
inputs:
buildType: 'current'
downloadType: 'specific'
itemPattern: '**'
downloadPath: '$(System.ArtifactsDirectory)'
- task: NuGetCommand@2
inputs:
command: 'push'
packagesToPush: '$(Build.ArtifactStagingDirectory)/**/*.nupkg;!$(Build.ArtifactStagingDirectory)/**/*.symbols.nupkg'
nuGetFeedType: 'external'
publishFeedCredentials: '$(artifacts.nuget.feed)'
- stage: PublishRelease
displayName: 'Publish Release'
displayName: 'Publish to NuGet'
dependsOn: build
condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/'))
condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/head/master'))
jobs:
- job: PublishNuGet
displayName: 'Publish to NuGet'
Expand Down

0 comments on commit 3729659

Please sign in to comment.