Skip to content

Commit

Permalink
Merge pull request PointCloudLibrary#4321 from kunaltyagi/release-name
Browse files Browse the repository at this point in the history
Better name in archive created by CI
  • Loading branch information
SergioRAgostinho authored Aug 13, 2020
2 parents 209444a + f34c648 commit 3cb0cf4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .ci/azure-pipelines/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -104,21 +104,23 @@ stages:
vmImage: 'ubuntu-latest'
variables:
PUBLISH_LOCATION: '$(Build.ArtifactStagingDirectory)'
SOURCE_LOCATION: '$(Build.SourcesDirectory)'
steps:
- checkout: self
# find the commit hash on a quick non-forced update too
fetchDepth: 10
path: 'pcl'
- task: Bash@3
displayName: "Remove git files"
inputs:
targetType: 'inline'
script: 'rm -fr ./.git'
workingDirectory: '$(Build.SourcesDirectory)'
workingDirectory: '$(SOURCE_LOCATION)'
failOnStderr: true
- task: ArchiveFiles@2
displayName: "Create release archive (.tar.gz)"
inputs:
rootFolderOrFile: '$(Build.SourcesDirectory)'
rootFolderOrFile: '$(SOURCE_LOCATION)'
includeRootFolder: true
archiveType: 'tar'
archiveFile: '$(PUBLISH_LOCATION)/source.tar.gz'
Expand All @@ -127,7 +129,7 @@ stages:
- task: ArchiveFiles@2
displayName: "Create release archive (.zip)"
inputs:
rootFolderOrFile: '$(Build.SourcesDirectory)'
rootFolderOrFile: '$(SOURCE_LOCATION)'
includeRootFolder: true
archiveType: 'zip'
archiveFile: '$(PUBLISH_LOCATION)/source.zip'
Expand Down

0 comments on commit 3cb0cf4

Please sign in to comment.