Skip to content

Commit 1705e2c

Browse files
committed
propose to put maven and github release into a single stage
1 parent 543f75c commit 1705e2c

1 file changed

Lines changed: 22 additions & 10 deletions

File tree

‎.azure-pipelines/buildAndPackage.yml‎

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ stages:
5252
- template: templates/maven-preview-stage/copy-and-build.yml
5353
- template: templates/alert-failure.yml
5454

55-
- stage: Maven-Release
55+
- stage: Maven-Release-And-Git-Release
5656
dependsOn: []
5757
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
5858
jobs:
@@ -68,12 +68,24 @@ stages:
6868
- template: templates/maven-release-stage/copy-and-build.yml
6969
- template: templates/alert-failure.yml
7070

71-
- stage: Github-Release
72-
dependsOn:
73-
- Maven-Release
74-
jobs:
75-
- job: Github-Release
76-
steps:
77-
- template: templates/download-artifacts.yml
78-
- template: templates/github-release-stage/version-and-release.yml
79-
- template: templates/alert-failure.yml
71+
- deployment: Github-Release
72+
dependsOn: Maven-Release
73+
environment: 'MSGraph SDK Development - Java'
74+
pool:
75+
vmImage: windows-latest
76+
strategy:
77+
runOnce:
78+
deploy:
79+
steps:
80+
- template: templates/github-release-stage/version-and-release.yml
81+
- template: templates/alert-failure.yml
82+
83+
#- stage: Github-Release
84+
# dependsOn:
85+
# - Maven-Release
86+
# jobs:
87+
# - job: Github-Release
88+
# steps:
89+
# - template: templates/download-artifacts.yml
90+
# - template: templates/github-release-stage/version-and-release.yml
91+
# - template: templates/alert-failure.yml

0 commit comments

Comments
 (0)