-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathazure-devops.yml
More file actions
69 lines (56 loc) · 1.68 KB
/
azure-devops.yml
File metadata and controls
69 lines (56 loc) · 1.68 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
69
# 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
- template: common-dotnet.yml@templates
- template: common-macos.yml@templates
- task: NuGetCommand@2
displayName: 'NuGet restore LuaCodeView.iOS.sln'
inputs:
restoreSolution: LuaCodeView.iOS.sln
- task: PowerShell@2
displayName: 'PreBuild Script'
inputs:
targetType: filePath
filePath: ./devops/PreBuild.ps1
arguments: 'Codefoco.LuaCodeView.iOS LuaCodeView.iOS.nuspec'
- task: MSBuild@1
displayName: 'Build solution LuaCodeView.iOS.sln'
inputs:
solution: LuaCodeView.iOS.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.LuaCodeView.iOS LuaCodeView.iOS.nuspec'
- script: 'mv *.nupkg Codefoco.LuaCodeView.iOS.nupkg'
displayName: 'Rename NuGet package'
- task: PublishBuildArtifacts@1
displayName: 'Publish Codefoco.LuaCodeView.iOS.nupkg Artifact'
inputs:
PathtoPublish: Codefoco.LuaCodeView.iOS.nupkg
ArtifactName: Codefoco.LuaCodeView.iOS.nupkg
- task: PowerShell@2
displayName: 'Publish NuGet'
inputs:
targetType: filePath
filePath: ./devops/Publish.ps1
arguments: Codefoco.LuaCodeView.iOS
- template: send-telegram.yml@templates