ci: Use tar.gz compression for unix build assets

This commit is contained in:
Matan Kushner 2019-07-15 00:20:19 -04:00
parent 1ed3b5b41b
commit 1369e17aa4
No known key found for this signature in database
GPG Key ID: 4B98C3A8949CA8A4
1 changed files with 8 additions and 10 deletions

View File

@ -5,8 +5,6 @@ parameters:
repositoryName: "$(Build.Repository.Name)"
dependsOn: []
displayName: "Release to GitHub"
tarCompression: "none"
archiveType: "zip"
archiveName: "$(Build.Repository.Name)"
jobs:
@ -45,9 +43,9 @@ jobs:
displayName: Gather assets
inputs:
rootFolderOrFile: "$(Build.BinariesDirectory)/${{ build_target }}"
archiveType: ${{ parameters.archiveType }}
tarCompression: ${{ parameters.tarCompression }}
archiveFile: "$(Build.ArtifactStagingDirectory)/${{ parameters.archiveName }}-$(build.my_tag)-${{ build_target }}.zip"
archiveType: "tar"
tarCompression: "gz"
archiveFile: "$(Build.ArtifactStagingDirectory)/${{ parameters.archiveName }}-$(build.my_tag)-${{ build_target }}.tar.gz"
- task: GitHubRelease@0
displayName: Create release
@ -97,9 +95,9 @@ jobs:
displayName: Gather assets
inputs:
rootFolderOrFile: "$(Build.BinariesDirectory)/${{ build_target }}"
archiveType: ${{ parameters.archiveType }}
tarCompression: ${{ parameters.tarCompression }}
archiveFile: "$(Build.ArtifactStagingDirectory)/${{ parameters.archiveName }}-$(build.my_tag)-${{ build_target }}.zip"
archiveType: "tar"
tarCompression: "gz"
archiveFile: "$(Build.ArtifactStagingDirectory)/${{ parameters.archiveName }}-$(build.my_tag)-${{ build_target }}.tar.gz"
- task: GitHubRelease@0
displayName: Create release
@ -148,8 +146,8 @@ jobs:
displayName: Gather assets
inputs:
rootFolderOrFile: "$(Build.BinariesDirectory)/${{ build_target }}"
archiveType: ${{ parameters.archiveType }}
tarCompression: ${{ parameters.tarCompression }}
archiveType: "zip"
tarCompression: "None"
archiveFile: "$(Build.ArtifactStagingDirectory)/${{ parameters.archiveName }}-$(build.my_tag)-${{ build_target }}.zip"
- task: GitHubRelease@0