Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use stages for deploy #643

Merged
merged 4 commits into from Dec 2, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
36 changes: 33 additions & 3 deletions build/azure-pipelines.yml
Expand Up @@ -2,6 +2,7 @@ variables:
BuildPlatform: 'Any CPU'
BuildConfiguration: 'Release'
ProjectLoadStyle: 'All'
ReleaseNuGet: false

trigger:
- master
Expand Down Expand Up @@ -66,11 +67,40 @@ stages:
dependsOn: Build
condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest'))

- stage: Deploy
- stage: MyGet
jobs:
- template: deploy.yml
- deployment: OpenXmlMyGet
displayName: Deploy to MyGet
pool:
name: Hosted Windows 2019 with VS2019
environment: 'openxmlsdk-dotnet-myget'
strategy:
runOnce:
deploy:
steps:
- template: nuget.yml
parameters:
feed: 'OpenXML MyGet Feed'
dependsOn:
- Sign
- PerformanceTests
- UnitTests
condition: and(succeeded(), eq(variables['Build.SourceBranchName'], 'master'))
condition: succeeded()

- stage: NuGet
jobs:
- deployment: OpenXmlNuGet
displayName: Deploy to NuGet
pool:
name: Hosted Windows 2019 with VS2019
environment: 'openxmlsdk-dotnet-nuget'
strategy:
runOnce:
deploy:
steps:
- template: nuget.yml
parameters:
feed: 'OpenXML NuGet Feed'
dependsOn:
- MyGet
condition: and(succeeded(), variables['ReleaseNuGet'], eq(variables['Build.SourceBranchName'], 'master'))
47 changes: 0 additions & 47 deletions build/deploy.yml

This file was deleted.