In order to release both a linux version and an osx version of a package using travis, you need to have two different providers, conditioned on the TRAVIS_OS_NAME.
For example:
deploy:
- provider: releases
file: "${TRAVIS_BUILD_DIR}/my_awesome_package.deb"
skip_cleanup: true
on:
tags: true
condition: "$TRAVIS_OS_NAME = linux"
# this is the oauth token for the release user
api_key:
secure: ---
- provider: releases
file: "${TRAVIS_BUILD_DIR}/my_awesome_package.dmg"
skip_cleanup: true
on:
tags: true
condition: "$TRAVIS_OS_NAME = osx"
# this is the oauth token for the release user
api_key:
secure: ---