-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathazure-devops.yml
More file actions
68 lines (55 loc) · 1.59 KB
/
azure-devops.yml
File metadata and controls
68 lines (55 loc) · 1.59 KB
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# Repo: codefoco/AzureDevopsTemplates
resources:
repositories:
- repository: templates
type: github
name: codefoco/AzureDevopsTemplates
endpoint: codefoco
jobs:
- job: 'BuildMac'
displayName: 'Mac'
variables:
- group: 'Keys'
pool:
vmImage: 'macOS-12'
demands: msbuild
steps:
- checkout: self
submodules: 'true'
- template: common-dotnet.yml@templates
- template: common-macos.yml@templates
- task: NuGetCommand@2
displayName: 'NuGet restore'
- task: PowerShell@2
displayName: 'PreBuild Script'
inputs:
targetType: filePath
filePath: ./devops/PreBuild.ps1
arguments: 'Codefoco.CYRTextView CYRTextView.nuspec'
- task: MSBuild@1
displayName: 'Build solution CYRTextView.sln'
inputs:
solution: CYRTextView.sln
configuration: Release
- script: 'nuget setapikey $(apikey)'
displayName: 'Set NuGet API Key'
- task: PowerShell@2
displayName: 'Package NuGet'
inputs:
targetType: filePath
filePath: ./devops/Package.ps1
arguments: 'Codefoco.CYRTextView CYRTextView.nuspec'
- script: 'mv *.nupkg Codefoco.CYRTextview.nupkg'
displayName: 'Rename NuGet package'
- task: PublishBuildArtifacts@1
displayName: 'Publish Codefoco.CYRTextview.nupkg Artifact'
inputs:
PathtoPublish: Codefoco.CYRTextview.nupkg
ArtifactName: Codefoco.CYRTextview.nupkg
- task: PowerShell@2
displayName: 'Publish NuGet'
inputs:
targetType: filePath
filePath: ./devops/Publish.ps1
arguments: Codefoco.CYRTextView
- template: send-telegram.yml@templates