From 59b5578c7bffc56f6227c60bfcb38f97d39ec8d9 Mon Sep 17 00:00:00 2001 From: sudden6 Date: Wed, 4 Jul 2018 01:00:04 +0200 Subject: [PATCH] feat(deploy): upload Flatpak bundle to Github releases --- .travis.yml | 12 ++++++++++++ flatpak/build-flatpak.sh | 6 ++++++ 2 files changed, 18 insertions(+) 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