forked from hawkerm/monaco-editor-uwp
-
Notifications
You must be signed in to change notification settings - Fork 7
/
.vsts-ci.yml
40 lines (33 loc) · 1.34 KB
/
.vsts-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
jobs:
- job: Windows
pool:
vmImage: 'windows-2022'
steps:
- template: build/templates/gitversion.yml
- task: UseDotNet@2
displayName: 'Use .Net Core runtime 3.1.x'
inputs:
packageType: runtime
version: 5.0.x
- powershell: .\build\Install-WindowsSdkISO.ps1 19041
displayName: Windows SDK Install
- task: MSBuild@1
inputs:
solution: MonacoEditorComponent.sln
msbuildArguments: /r /p:Configuration=Release "/p:PackageOutputPath=$(build.artifactstagingdirectory)\nuget" "/p:PackageVersion=$(GITVERSION.FullSemVer)" "/p:InformationalVersion=$(GITVERSION.InformationalVersion)" /detailedsummary
- task: PowerShell@2
displayName: Authenticode Sign Packages
inputs:
filePath: build/Sign-Package.ps1
env:
SignClientUser: $(SignClientUser)
SignClientSecret: $(SignClientSecret)
SignPackageName: "uno.monaco-editor-uwp"
SignPackageDescription: "uno.monaco-editor-uwp"
ArtifactDirectory: $(build.artifactstagingdirectory)
condition: and(succeeded(), not(eq(variables['build.reason'], 'PullRequest')), not(eq(variables['SignClientSecret'], '')), not(eq(variables['SignClientUser'], '')))
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: $(build.artifactstagingdirectory)
ArtifactName: uno-monaco-editor-uwp-drop
ArtifactType: Container