mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 11:00:48 +03:00
ci: Don't build artifacts on commits without a tag
This commit is contained in:
parent
f7003ddeb5
commit
287dff892c
3 changed files with 18 additions and 3 deletions
|
@ -5,7 +5,11 @@
|
|||
#
|
||||
|
||||
DIR=package.dir
|
||||
VERSION=`git tag -l --points-at HEAD`
|
||||
TAG=`git tag -l --points-at HEAD`
|
||||
|
||||
if [ -z "$TAG" ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# Installing dependencies on travis.
|
||||
if [ ! -z "$TRAVIS_OS_NAME" ]; then
|
||||
|
@ -38,7 +42,7 @@ fpm --force \
|
|||
--name nheko \
|
||||
--description "Desktop client for the Matrix protocol" \
|
||||
--url "https://github.com/mujx/nheko" \
|
||||
--version ${VERSION} \
|
||||
--version ${TAG} \
|
||||
--architecture x86_64 \
|
||||
--maintainer "mujx (https://github.com/mujx)" \
|
||||
--license "GPLv3" \
|
||||
|
@ -46,4 +50,4 @@ fpm --force \
|
|||
--deb-no-default-config-files \
|
||||
--chdir ${DIR} usr
|
||||
|
||||
fpm -s deb -t rpm nheko_${VERSION}_amd64.deb
|
||||
fpm -s deb -t rpm nheko_${TAG}_amd64.deb
|
||||
|
|
|
@ -4,6 +4,11 @@ set -e
|
|||
|
||||
APP=nheko
|
||||
DIR=${APP}.AppDir
|
||||
TAG=`git tag -l --points-at HEAD`
|
||||
|
||||
if [ -z "$TAG" ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# Set up AppImage structure.
|
||||
mkdir -p ${DIR}/usr/{bin,share/pixmaps,share/applications}
|
||||
|
|
|
@ -2,6 +2,12 @@
|
|||
|
||||
set -e
|
||||
|
||||
TAG=`git tag -l --points-at HEAD`
|
||||
|
||||
if [ -z "$TAG" ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# Add Qt binaries to path
|
||||
PATH=/usr/local/opt/qt/bin/:${PATH}
|
||||
|
||||
|
|
Loading…
Reference in a new issue