|
14 | 14 | - '*'
|
15 | 15 |
|
16 | 16 | variables:
|
17 |
| - is-runtime-release: $[startsWith(variables['Build.SourceBranch'], 'refs/tags/Runtime-v')] |
18 |
| - is-sdk-release: $[startsWith(variables['Build.SourceBranch'], 'refs/tags/SDK-v')] |
| 17 | + - name: is-runtime-release |
| 18 | + value: $[startsWith(variables['Build.SourceBranch'], 'refs/tags/Runtime-v')] |
| 19 | + - name: is-sdk-release |
| 20 | + value: $[startsWith(variables['Build.SourceBranch'], 'refs/tags/SDK-v')] |
| 21 | + - name: Codeql.Enabled |
| 22 | + value: true |
19 | 23 |
|
20 | 24 | stages:
|
21 | 25 | ##### Test and Build #####
|
@@ -146,109 +150,3 @@ stages:
|
146 | 150 | inputs:
|
147 | 151 | targetPath: '$(Build.ArtifactStagingDirectory)'
|
148 | 152 | artifactName: '$(dir-name)'
|
149 |
| - |
150 |
| -##### Deploy and Release Runtime Extension ##### |
151 |
| -- stage: DeployAndReleaseRuntime |
152 |
| - dependsOn: Build |
153 |
| - condition: and(succeeded(), eq(variables['is-runtime-release'], 'true')) |
154 |
| - jobs: |
155 |
| - ##### Deploy to our release environment ##### |
156 |
| - # Note: This step requires approval, allows for manual smoke testing the artifact before release |
157 |
| - - deployment: Deploy |
158 |
| - pool: |
159 |
| - vmImage: 'windows-latest' |
160 |
| - environment: 'vscode-dotnetcore-extension-releases' |
161 |
| - ##### Determine version to publish ##### |
162 |
| - - job: GetVersion |
163 |
| - displayName: 'Get Version' |
164 |
| - pool: |
165 |
| - vmImage: 'windows-latest' |
166 |
| - steps: |
167 |
| - - task: NodeTool@0 |
168 |
| - inputs: |
169 |
| - versionSpec: '15.x' |
170 |
| - displayName: 'Install Node.js' |
171 |
| - - bash: | |
172 |
| - VERSION=`node -p "require('./package.json').version"` |
173 |
| - echo "##vso[task.setvariable variable=version;isOutput=true]$VERSION" |
174 |
| - name: GetVersion |
175 |
| - workingDirectory: 'vscode-dotnet-runtime-extension' |
176 |
| - displayName: 'Get Version' |
177 |
| - ##### Publish to marketplace ##### |
178 |
| - - job: Publish |
179 |
| - displayName: 'Publish to Marketplace' |
180 |
| - dependsOn: |
181 |
| - - Deploy |
182 |
| - - GetVersion |
183 |
| - pool: |
184 |
| - vmImage: 'windows-latest' |
185 |
| - variables: |
186 |
| - version: $[ dependencies.GetVersion.outputs['GetVersion.version'] ] |
187 |
| - steps: |
188 |
| - - checkout: none # Skip checking out repo |
189 |
| - - task: DownloadPipelineArtifact@2 |
190 |
| - displayName: 'Download Packaged Extension' |
191 |
| - inputs: |
192 |
| - path: '$(System.ArtifactsDirectory)' |
193 |
| - - task: NodeTool@0 |
194 |
| - inputs: |
195 |
| - versionSpec: '15.x' |
196 |
| - displayName: 'Install Node.js' |
197 |
| - - bash: | |
198 |
| - npm install vsce --reg https://registry.npmjs.org/ -g --verbose |
199 |
| - vsce publish --packagePath vscode-dotnet-runtime-$(version).vsix -p $(VSCODE_MARKETPLACE_TOKEN) |
200 |
| - displayName: 'Publish to Marketplace' |
201 |
| - workingDirectory: '$(System.ArtifactsDirectory)/vscode-dotnet-runtime-extension' |
202 |
| -
|
203 |
| -##### Deploy and Release SDK Extension ##### |
204 |
| -- stage: DeployAndReleaseSDK |
205 |
| - dependsOn: Build |
206 |
| - condition: and(succeeded(), eq(variables['is-sdk-release'], 'true')) |
207 |
| - jobs: |
208 |
| - ##### Deploy to our release environment ##### |
209 |
| - # Note: This step requires approval, allows for manual smoke testing the artifact before release |
210 |
| - - deployment: Deploy |
211 |
| - pool: |
212 |
| - vmImage: 'windows-latest' |
213 |
| - environment: 'vscode-dotnetcore-extension-releases' |
214 |
| - ##### Determine version to publish ##### |
215 |
| - - job: GetVersion |
216 |
| - displayName: 'Get Version' |
217 |
| - pool: |
218 |
| - vmImage: 'windows-latest' |
219 |
| - steps: |
220 |
| - - task: NodeTool@0 |
221 |
| - inputs: |
222 |
| - versionSpec: '15.x' |
223 |
| - displayName: 'Install Node.js' |
224 |
| - - bash: | |
225 |
| - VERSION=`node -p "require('./package.json').version"` |
226 |
| - echo "##vso[task.setvariable variable=version;isOutput=true]$VERSION" |
227 |
| - name: GetVersion |
228 |
| - workingDirectory: 'vscode-dotnet-sdk-extension' |
229 |
| - displayName: 'Get Version' |
230 |
| - ##### Publish to marketplace ##### |
231 |
| - - job: Publish |
232 |
| - displayName: 'Publish to Marketplace' |
233 |
| - dependsOn: |
234 |
| - - Deploy |
235 |
| - - GetVersion |
236 |
| - pool: |
237 |
| - vmImage: 'windows-latest' |
238 |
| - variables: |
239 |
| - version: $[ dependencies.GetVersion.outputs['GetVersion.version'] ] |
240 |
| - steps: |
241 |
| - - checkout: none # Skip checking out repo |
242 |
| - - task: DownloadPipelineArtifact@2 |
243 |
| - displayName: 'Download Packaged Extension' |
244 |
| - inputs: |
245 |
| - path: '$(System.ArtifactsDirectory)' |
246 |
| - - task: NodeTool@0 |
247 |
| - inputs: |
248 |
| - versionSpec: '15.x' |
249 |
| - displayName: 'Install Node.js' |
250 |
| - - bash: | |
251 |
| - npm install vsce --reg https://registry.npmjs.org/ -g --verbose |
252 |
| - vsce publish --packagePath vscode-dotnet-sdk-$(version).vsix -p $(VSCODE_MARKETPLACE_TOKEN) |
253 |
| - displayName: 'Publish to Marketplace' |
254 |
| - workingDirectory: '$(System.ArtifactsDirectory)/vscode-dotnet-sdk-extension' |
0 commit comments