Skip to content

Commit 2ceea4d

Browse files
Microsoft Graph DevX ToolingMicrosoft Graph DevX Tooling
authored andcommitted
Added stage for deploying to powershell gallery
1 parent 53ad5ea commit 2ceea4d

File tree

2 files changed

+31
-10
lines changed

2 files changed

+31
-10
lines changed

.azure-pipelines/ci-build.yml

Lines changed: 28 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ parameters:
1616
default: true
1717
- name: InternalFeed
1818
type: string
19-
default: 'ATPopFeed'
19+
default: '0985d294-5762-4bc2-a565-161ef349ca3e/PowerShell_V2_Build'
2020
displayName: Internal NuGet Feed
2121
values:
2222
- '0985d294-5762-4bc2-a565-161ef349ca3e/PowerShell_v2'
@@ -105,12 +105,12 @@ extends:
105105
Pattern: "Microsoft.Graph*.nupkg"
106106

107107
- template: .azure-pipelines/common-templates/security-post-checks.yml@self
108-
- stage: 'Deploy'
108+
- stage: 'Deploy_to_Internal_Feed'
109109
dependsOn: stage
110110
jobs:
111111
- deployment: 'DeployToInternalFeed'
112112
displayName: 'Deploy to Internal Feed'
113-
environment: 'InternalFeed'
113+
environment: 'PowerShellInternalFeed'
114114
strategy:
115115
runOnce:
116116
deploy:
@@ -120,9 +120,6 @@ extends:
120120
displayName: 'Download Build Artifacts'
121121
inputs:
122122
buildType: 'current'
123-
# project: 'Graph Developer Experiences'
124-
# definition: 'PowerShell V2 Build'
125-
# buildVersionToDownload: 'latest'
126123
targetPath: '$(System.DefaultWorkingDirectory)'
127124
- task: 1ES.PublishNuget@1
128125
displayName: 'Publish NuGet to feed'
@@ -133,7 +130,31 @@ extends:
133130
publishVstsFeed: ${{ parameters.InternalFeed }}
134131
nuGetFeedType: internal
135132
allowPackageConflicts: true
136-
133+
- stage: 'Deploy_to_PsGallery'
134+
dependsOn: stage
135+
jobs:
136+
- deployment: 'DeployToPowerShellGallery'
137+
displayName: 'Deploy to PowerShell Gallery'
138+
environment: 'PowerShellGallery'
139+
strategy:
140+
runOnce:
141+
deploy:
142+
steps:
143+
- checkout: self
144+
- task: DownloadPipelineArtifact@2
145+
displayName: 'Download Build Artifacts'
146+
inputs:
147+
buildType: 'current'
148+
targetPath: '$(System.DefaultWorkingDirectory)'
149+
- task: 1ES.PublishNuget@1
150+
displayName: 'Publish NuGet to feed'
151+
inputs:
152+
useDotNetTask: false
153+
packageParentPath: '$(System.DefaultWorkingDirectory)'
154+
packagesToPush: '$(System.DefaultWorkingDirectory)/**/drop/**/*.nupkg'
155+
publishVstsFeed: ${{ parameters.InternalFeed }}
156+
nuGetFeedType: internal
157+
allowPackageConflicts: true
137158

138159

139160

config/ModuleMetadata.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@
2727
"versions": {
2828
"authentication": {
2929
"prerelease": "",
30-
"version": "2.24.1"
30+
"version": "2.24.2"
3131
},
3232
"beta": {
3333
"prerelease": "",
34-
"version": "2.24.1"
34+
"version": "2.24.2"
3535
},
3636
"v1.0": {
3737
"prerelease": "",
38-
"version": "2.24.1"
38+
"version": "2.24.2"
3939
}
4040
}
4141
}

0 commit comments

Comments
 (0)