-
Notifications
You must be signed in to change notification settings - Fork 87
/
Copy pathazure-pipelines.yml
50 lines (42 loc) · 1.32 KB
/
azure-pipelines.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
41
42
43
44
45
46
47
48
49
50
trigger:
- master
pool:
vmImage: 'windows-latest'
variables:
buildPlatform: 'Any CPU'
buildConfiguration: 'Release'
steps:
- task: DotNetCoreCLI@2
displayName: "NuGet Restore"
inputs:
command: 'restore'
projects: 'EnergyStar/EnergyStar.csproj'
feedsToUse: 'select'
- task: DotNetCoreCLI@2
displayName: "Release Prod Windows x64"
inputs:
command: 'publish'
publishWebProjects: false
projects: 'EnergyStar/EnergyStar.csproj'
arguments: '-c ReleaseInvisible -r win-x64 --self-contained true -p:PublishSingleFile=true -p:PublishReadyToRun=true -p:PublishTrimmed=True'
zipAfterPublish: false
modifyOutputPath: false
- task: DotNetCoreCLI@2
displayName: "Release Prod Windows ARM64"
inputs:
command: 'publish'
publishWebProjects: false
projects: 'EnergyStar/EnergyStar.csproj'
arguments: '-c ReleaseInvisible -r win-arm64 --self-contained true -p:PublishSingleFile=true -p:PublishReadyToRun=true -p:PublishTrimmed=True'
zipAfterPublish: false
modifyOutputPath: false
- task: PowerShell@2
displayName: "Prepare and Package Deliverables"
inputs:
filePath: './Package/buildout.ps1'
- task: PublishBuildArtifacts@1
displayName: "Upload Artifacts"
inputs:
PathtoPublish: 'Package'
ArtifactName: 'PreSignRelease'
publishLocation: 'Container'