@@ -188,8 +188,16 @@ stages:
188
188
displayName: Update crate version
189
189
condition: and(succeeded(), eq(variables['target'], 'x86_64-apple-darwin'))
190
190
191
+ - task : ArchiveFiles@2
192
+ displayName : Pack source folder for crate publishing
193
+ condition : and(succeeded(), eq(variables['target'], 'x86_64-unknown-linux-gnu'))
194
+ inputs :
195
+ rootFolderOrFile : ' $(Build.SourcesDirectory)'
196
+ archiveType : ' 7z'
197
+ archiveFile : ' $(Build.ArtifactStagingDirectory)/crate/rnp.source.7z'
198
+
191
199
- task : CopyFiles@2
192
- displayName : Copy code for crate publishing
200
+ displayName : Copy code for source code publishing
193
201
condition : and(succeeded(), eq(variables['target'], 'x86_64-unknown-linux-gnu'))
194
202
inputs :
195
203
sourceFolder : ' $(Build.SourcesDirectory)'
@@ -205,28 +213,21 @@ stages:
205
213
Contents : ' .git'
206
214
207
215
- task : ArchiveFiles@2
208
- displayName : Pack source as zip for crate publishing
216
+ displayName : Pack source as zip for source code publishing
209
217
condition : and(succeeded(), eq(variables['target'], 'x86_64-unknown-linux-gnu'))
210
218
inputs :
211
219
rootFolderOrFile : ' $(System.DefaultWorkingDirectory)/staging/crate'
212
220
archiveType : ' zip'
213
- archiveFile : ' $(Build.ArtifactStagingDirectory)/crate /rnp.source.$(build.tag).zip'
221
+ archiveFile : ' $(Build.ArtifactStagingDirectory)/source /rnp.source.$(build.tag).zip'
214
222
215
223
- task : ArchiveFiles@2
216
- displayName : Pack source as tar.gz for crate publishing
224
+ displayName : Pack source as tar.gz for source publishing
217
225
condition : and(succeeded(), eq(variables['target'], 'x86_64-unknown-linux-gnu'))
218
226
inputs :
219
227
rootFolderOrFile : ' $(System.DefaultWorkingDirectory)/staging/crate'
220
228
archiveType : ' tar'
221
229
tarCompression : ' gz'
222
- archiveFile : ' $(Build.ArtifactStagingDirectory)/crate/rnp.source.$(build.tag).tar.gz'
223
-
224
- - task : CopyFiles@2
225
- displayName : Copy chocolatey template to output
226
- condition : and(succeeded(), eq(variables['target'], 'x86_64-unknown-linux-gnu'))
227
- inputs :
228
- sourceFolder : ' $(Build.SourcesDirectory)/build/templates/chocolatey'
229
- targetFolder : ' $(Build.ArtifactStagingDirectory)/chocolatey'
230
+ archiveFile : ' $(Build.ArtifactStagingDirectory)/source/rnp.source.$(build.tag).tar.gz'
230
231
231
232
#
232
233
# Running all tests
@@ -315,7 +316,7 @@ stages:
315
316
#
316
317
- task : PublishPipelineArtifact@1
317
318
displayName : Publish pipeline artifact
318
- condition : and(succeeded(), ne(variables['Build.Reason'], 'PullRequest'))
319
+ # condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest'))
319
320
inputs :
320
321
targetPath : ' $(Build.ArtifactStagingDirectory)'
321
322
0 commit comments