@@ -86,13 +86,13 @@ extends:
86
86
inputs :
87
87
buildType : ' current'
88
88
artifactName : ' Unsigned_Plugin'
89
- targetPath : ' $(System.ArtifactsDirectory )\Unsigned_Plugin'
89
+ targetPath : ' $(Build.BinariesDirectory )\Unsigned_Plugin'
90
90
- task : AntiMalware@4
91
91
displayName : Anti-Malware Scan
92
92
inputs :
93
93
InputType : ' Basic'
94
94
ScanType : ' CustomScan'
95
- FileDirPath : ' $(System.ArtifactsDirectory )'
95
+ FileDirPath : ' $(Build.BinariesDirectory )'
96
96
EnableServices : true
97
97
SupportLogOnError : true
98
98
TreatSignatureUpdateFailureAs : ' Warning'
@@ -107,7 +107,7 @@ extends:
107
107
AuthAKVName : ' oss-signing-vault'
108
108
AuthCertName : ' oss-esrp-auth-cert'
109
109
AuthSignCertName : ' oss-esrp-signing-cert'
110
- FolderPath : ' $(System.ArtifactsDirectory )\Unsigned_Plugin'
110
+ FolderPath : ' $(Build.BinariesDirectory )\Unsigned_Plugin'
111
111
Pattern : ' *.vsix'
112
112
signConfigType : ' inlineSignParams'
113
113
inlineOperation : |
@@ -133,10 +133,43 @@ extends:
133
133
MaxConcurrency : ' 50'
134
134
MaxRetryAttempts : ' 5'
135
135
136
- - powershell : ' Get-ChildItem -Path '' $(System.ArtifactsDirectory )'' -Recurse CodeSign* | foreach { Remove-Item -Path $_.FullName }'
136
+ - powershell : ' Get-ChildItem -Path '' $(Build.BinariesDirectory )'' -Recurse CodeSign* | foreach { Remove-Item -Path $_.FullName }'
137
137
displayName : ' Delete Code Sign Summaries'
138
138
- task : PowerShell@2
139
139
displayName : Move Plugin File
140
140
inputs :
141
141
targetType : ' inline'
142
- script : ' mv $env:SYSTEM_ARTIFACTSDIRECTORY/Unsigned_Plugin/*.vsix $env:BUILD_STAGINGDIRECTORY/'
142
+ script : ' mv $env:BUILD_BINARIESDIRECTORY/Unsigned_Plugin/*.vsix $env:BUILD_STAGINGDIRECTORY/'
143
+
144
+ # Install dependencies and VS Code Extension Manager (vsce >= v2.26.1 needed)
145
+ - script : |
146
+ cd $(Build.StagingDirectory)
147
+ npm install -g @vscode/vsce
148
+ npm install
149
+ displayName: "Install vsce and dependencies"
150
+
151
+ # Publish to marketplace
152
+ - task : AzureCLI@2
153
+ displayName : ' Publishing with Managed Identity'
154
+ inputs :
155
+ azureSubscription : oss-vs-marketplace-publish-mi-connection
156
+ scriptType : " pscore"
157
+ scriptLocation : ' inlineScript'
158
+ inlineScript : |
159
+ cd $(Build.StagingDirectory)
160
+ vsce publish --azure-credential
161
+
162
+ - task : GitHubRelease@1
163
+ displayName : Release to GitHub
164
+ inputs :
165
+ gitHubConnection : ' github.com_gfs'
166
+ repositoryName : ' microsoft/DevSkim'
167
+ action : ' create'
168
+ target : ' $(Build.SourceVersion)'
169
+ tagSource : ' userSpecifiedTag'
170
+ tag : ' VSCode_v$(ReleaseVersion)'
171
+ title : ' DevSkim VS Code Extension v$(ReleaseVersion)'
172
+ assets : |
173
+ $(Build.StagingDirectory)/*.vsix
174
+ changeLogCompareToRelease : ' lastNonDraftRelease'
175
+ changeLogType : ' commitBased'
0 commit comments