@@ -14,6 +14,16 @@ stages:
14
14
rid : " win-x64"
15
15
PLATFORMLINKER : " "
16
16
ExE_FILE_ExT : " .exe"
17
+ linux-x64 :
18
+ imageName : ' ubuntu-16.04'
19
+ rid : " linux-x64"
20
+ PLATFORMLINKER : " clang-6.0"
21
+ EXE_FILE_EXT : " "
22
+ macos-x64 :
23
+ imageName : " macos-10.13"
24
+ rid : " osx-x64"
25
+ PLATFORMLINKER : " "
26
+ EXE_FILE_EXT : " "
17
27
pool :
18
28
vmImage : $(imageName)
19
29
@@ -52,7 +62,7 @@ stages:
52
62
inputs :
53
63
command : " custom"
54
64
custom : " publish"
55
- arguments : " -c Release"
65
+ arguments : " -c Release -r $(rid) -p:PackAsTool=false "
56
66
projects : " dotnet-ansible-vault-decoder/dotnet-ansible-vault-decoder.csproj"
57
67
publishWebProjects : false
58
68
- task : CopyFiles@2
@@ -61,6 +71,21 @@ stages:
61
71
sourceFolder : " dotnet-ansible-vault-decoder/bin/Release"
62
72
contents : " **/*.nupkg"
63
73
targetFolder : " $(Build.ArtifactStagingDirectory)"
74
+ - task : CopyFiles@2
75
+ name : " copying_executable"
76
+ displayName : " copying binary executable"
77
+ inputs :
78
+ sourceFolder : " dotnet-ansible-vault-decoder/bin/Release/netcoreapp2.1/$(rid)/native/"
79
+ contents : " dotnet-ansible-vault-decoder$(ExE_FILE_ExT)"
80
+ targetFolder : " $(Build.ArtifactStagingDirectory)/dotnet-anv-$(rid)$(EXE_FILE_EXT)"
81
+ - task : CopyFiles@2
82
+ name : " copying_executable"
83
+ displayName : " copying pdb"
84
+ inputs :
85
+ sourceFolder : " dotnet-ansible-vault-decoder/bin/Release/netcoreapp2.1/$(rid)/native/"
86
+ contents : " dotnet-ansible-vault-decoder.pdb"
87
+ targetFolder : " $(Build.ArtifactStagingDirectory)/dotnet-anv-$(rid).pdb"
88
+ condition : " eq(variables['imageName'],'windows-2019')"
64
89
- task : PublishBuildArtifacts@1
65
90
name : " publishing_artifacts"
66
91
inputs :
@@ -79,12 +104,22 @@ stages:
79
104
inputs :
80
105
artifact : dotnet-anv-win-x64
81
106
path : " $(Build.ArtifactStagingDirectory)"
107
+ - task : DownloadPipelineArtifact@2
108
+ displayName : download linux-x64
109
+ inputs :
110
+ artifact : dotnet-anv-linux-x64
111
+ path : " $(Build.ArtifactStagingDirectory)"
112
+ - task : DownloadPipelineArtifact@2
113
+ displayName : download osx-x64
114
+ inputs :
115
+ artifact : dotnet-anv-osx-x64
116
+ path : " $(Build.ArtifactStagingDirectory)"
82
117
- task : GitHubRelease@0
83
118
displayName : " releasing github"
84
119
inputs :
85
120
gitHubConnection : " dotnet-ansible-vault-decoder"
86
121
action : create
87
122
target : " $(Build.SourceVersion)"
88
- assets : " $(Build.ArtifactStagingDirectory)/*"
123
+ assets : " $(Build.ArtifactStagingDirectory)/**/* "
89
124
isDraft : true
90
125
0 commit comments