diff --git a/.travis.yml b/.travis.yml index d5752de97..04cdc4e89 100644 --- a/.travis.yml +++ b/.travis.yml @@ -135,6 +135,18 @@ deploy: tags: true skip_cleanup: true + # Linux Flatpak + - provider: releases + api_key: + secure: "BRbzTWRvadALRQSTihMKruOj64ydxusMUS9FQR//qFlS345ZYfYta43W//4LcWWDKtj6IvA6DRqNdabgWnpbpxpnm9gVftGUdOKlU3niPZhwsMkB2M12QHUnAP6DVOfGPvdciBV+6mu73SSxniEcrYjZ1CrRX7mknmehPpVKxNk=" + file_glob: true + file: ./output/* + on: + condition: $JOB == FLATPAK + repo: qTox/qTox + tags: true + skip_cleanup: true + # osx binary - provider: releases api_key: diff --git a/flatpak/build-flatpak.sh b/flatpak/build-flatpak.sh index 94697bff8..30efadfb6 100755 --- a/flatpak/build-flatpak.sh +++ b/flatpak/build-flatpak.sh @@ -22,3 +22,9 @@ docker run --rm --privileged \ -v $PWD/output:/output \ debian:stretch-slim \ /bin/bash -c "/qtox/flatpak/build.sh" + +# use the version number in the name when building a tag on Travis CI +if [ -n "$TRAVIS_TAG" ] +then + mv ./output/*.flatpak ./output/qTox-"$TRAVIS_TAG".flatpak +fi