Browse Source

chore(deploy): upload AppImage to Github releases on each tag

pull/5130/head
sudden6 7 years ago
parent
commit
22f7f958ed
No known key found for this signature in database
GPG Key ID: 279509B499E032B9
  1. 12
      .travis.yml
  2. 6
      appimage/build-appimage.sh

12
.travis.yml

@ -109,6 +109,7 @@ matrix: @@ -109,6 +109,7 @@ matrix:
env: JOB=build-osx
- stage: "macOS and AppImage"
os: linux
env: JOB=APPIMAGE
script: ./appimage/build-appimage.sh
services:
- docker
@ -116,6 +117,17 @@ matrix: @@ -116,6 +117,17 @@ matrix:
script: "./.travis/$JOB.sh"
deploy:
# Linux AppImage
- provider: releases
api_key:
secure: "BRbzTWRvadALRQSTihMKruOj64ydxusMUS9FQR//qFlS345ZYfYta43W//4LcWWDKtj6IvA6DRqNdabgWnpbpxpnm9gVftGUdOKlU3niPZhwsMkB2M12QHUnAP6DVOfGPvdciBV+6mu73SSxniEcrYjZ1CrRX7mknmehPpVKxNk="
file: ./output/qTox-"$TRAVIS_TAG".AppImage
on:
condition: $JOB == APPIMAGE
repo: qTox/qTox
tags: true
skip_cleanup: true
# osx binary
- provider: releases
api_key:

6
appimage/build-appimage.sh

@ -40,3 +40,9 @@ docker run --rm \ @@ -40,3 +40,9 @@ docker run --rm \
-v $PWD/output:/output \
debian:stretch-slim \
/bin/bash -c "/qtox/appimage/build.sh"
# use the version number in the name when building a tag on Travis CI
if [ -n "$TRAVIS_TAG" ]
then
mv ./output/*.AppImage ./output/qTox-"$TRAVIS_TAG".AppImage
fi

Loading…
Cancel
Save