mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
chore(deploy): upload AppImage to Github releases on each tag
This commit is contained in:
parent
1f58e1c0af
commit
22f7f958ed
12
.travis.yml
12
.travis.yml
|
@ -109,6 +109,7 @@ matrix:
|
||||||
env: JOB=build-osx
|
env: JOB=build-osx
|
||||||
- stage: "macOS and AppImage"
|
- stage: "macOS and AppImage"
|
||||||
os: linux
|
os: linux
|
||||||
|
env: JOB=APPIMAGE
|
||||||
script: ./appimage/build-appimage.sh
|
script: ./appimage/build-appimage.sh
|
||||||
services:
|
services:
|
||||||
- docker
|
- docker
|
||||||
|
@ -116,6 +117,17 @@ matrix:
|
||||||
script: "./.travis/$JOB.sh"
|
script: "./.travis/$JOB.sh"
|
||||||
|
|
||||||
deploy:
|
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
|
# osx binary
|
||||||
- provider: releases
|
- provider: releases
|
||||||
api_key:
|
api_key:
|
||||||
|
|
|
@ -40,3 +40,9 @@ docker run --rm \
|
||||||
-v $PWD/output:/output \
|
-v $PWD/output:/output \
|
||||||
debian:stretch-slim \
|
debian:stretch-slim \
|
||||||
/bin/bash -c "/qtox/appimage/build.sh"
|
/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…
Reference in New Issue
Block a user