Skip to content

Commit 3cb0cf4

Browse files
Merge pull request #4321 from kunaltyagi/release-name
Better name in archive created by CI
2 parents 209444a + f34c648 commit 3cb0cf4

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.ci/azure-pipelines/release.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,21 +104,23 @@ stages:
104104
vmImage: 'ubuntu-latest'
105105
variables:
106106
PUBLISH_LOCATION: '$(Build.ArtifactStagingDirectory)'
107+
SOURCE_LOCATION: '$(Build.SourcesDirectory)'
107108
steps:
108109
- checkout: self
109110
# find the commit hash on a quick non-forced update too
110111
fetchDepth: 10
112+
path: 'pcl'
111113
- task: Bash@3
112114
displayName: "Remove git files"
113115
inputs:
114116
targetType: 'inline'
115117
script: 'rm -fr ./.git'
116-
workingDirectory: '$(Build.SourcesDirectory)'
118+
workingDirectory: '$(SOURCE_LOCATION)'
117119
failOnStderr: true
118120
- task: ArchiveFiles@2
119121
displayName: "Create release archive (.tar.gz)"
120122
inputs:
121-
rootFolderOrFile: '$(Build.SourcesDirectory)'
123+
rootFolderOrFile: '$(SOURCE_LOCATION)'
122124
includeRootFolder: true
123125
archiveType: 'tar'
124126
archiveFile: '$(PUBLISH_LOCATION)/source.tar.gz'
@@ -127,7 +129,7 @@ stages:
127129
- task: ArchiveFiles@2
128130
displayName: "Create release archive (.zip)"
129131
inputs:
130-
rootFolderOrFile: '$(Build.SourcesDirectory)'
132+
rootFolderOrFile: '$(SOURCE_LOCATION)'
131133
includeRootFolder: true
132134
archiveType: 'zip'
133135
archiveFile: '$(PUBLISH_LOCATION)/source.zip'

0 commit comments

Comments
 (0)