Only publish protobuf zip from Linux (#5438)

Last release attempt failed because when we tried to publish it from
macos it was already published from Linux.

Also includes a fix for the name of the zip.

changelog_begin
changelog_end
This commit is contained in:
Moritz Kiefer 2020-04-04 17:58:21 +02:00 committed by GitHub
parent 06ef97d6a8
commit 30f2c7421a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -77,7 +77,7 @@ steps:
TARBALL=daml-sdk-${{parameters.release_tag}}-${{parameters.name}}.tar.gz
cp bazel-bin/release/sdk-release-tarball.tar.gz $(Build.StagingDirectory)/$TARBALL
echo "##vso[task.setvariable variable=tarball;isOutput=true]$TARBALL"
PROTOS_ZIP=protobufs-{{parameters.release_tag}}.tar.gz
PROTOS_ZIP=protobufs-${{parameters.release_tag}}.tar.gz
cp bazel-bin/release/protobufs.zip $(Build.StagingDirectory)/$PROTOS_ZIP
echo "##vso[task.setvariable variable=protos-zip;isOutput=true]$PROTOS_ZIP"
name: publish
@ -97,4 +97,5 @@ steps:
artifactName: $(publish.protos-zip)
condition: and(succeeded(),
eq(${{parameters.is_release}}, 'true'),
eq(variables['Build.SourceBranchName'], 'master'))
eq(variables['Build.SourceBranchName'], 'master'),
eq('${{parameters.name}}', 'linux'))