I use matrix
to build my application on linux and osx:
matrix:
include:
- os: osx
osx_image: xcode10.1
compiler: clang
addons:
homebrew:
packages:
- qt5
update: true
if: tag IS blank
- os: linux
dist: focal
compiler: gcc
if: tag IS blank
And I had a deployment step for osx. These bits work just fine:
deploy:
provider: releases
edge: true
overwrite: true
token: $GITHUB_TOKEN
file: FileCommander.dmg
prerelease: true
on:
tags: true
all_branches: true
condition: $TRAVIS_OS_NAME = osx
But now I want to also deploy a build artifact from the Linux job, and I can’t think of any way to specify this (I also tried googling to no avail). I tried adding a second deploy
clause, but it seems that it is ignored altogether (or, more precisely, the first one is ignored):
deploy:
provider: releases
edge: true
overwrite: true
token: $GITHUB_TOKEN
file: FileCommander.AppImage
prerelease: true
on:
tags: true
all_branches: true
condition: $TRAVIS_OS_NAME = linux
I also now tried it this way, to no avail as well (still only one of the two artifacts deployed):
deploy:
provider: releases
edge: true
overwrite: true
token: $GITHUB_TOKEN
file: FileCommander.dmg
prerelease: true
on:
tags: true
all_branches: true
condition: $TRAVIS_OS_NAME = osx
provider: releases
edge: true
overwrite: true
token: $GITHUB_TOKEN
file: FileCommander.AppImage
prerelease: true
on:
tags: true
all_branches: true
condition: $TRAVIS_OS_NAME = linux