Skip to content

Commit

Permalink
Package building is managed by deb-builder
Browse files Browse the repository at this point in the history
* We don't have anymore need about deployment action
  • Loading branch information
camlafit committed Nov 17, 2023
1 parent c092ef2 commit 0f84322
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 58 deletions.
30 changes: 0 additions & 30 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,33 +18,3 @@ before_install:
- gpg --import 6D5E5753F12109663BABEED53087CD3324A99FBC.gpg
install:
- debuild '-k3087CD3324A99FBC'
deploy:
- provider: releases
skip_cleanup: true
file_glob: true
file: "../*.deb"
api_key:
secure: "YKY4M95GpA7fLgxM/iLsC5blaQAmcv4Vlp8YG4MBLOdowEhUO6Yudvtn9Rq3VqWbbY1KXaaNiE4UEvGNLv+lm5h4iJU47+tLsKxu/lXEoeZ6lIM5QNpoa1g3WmNEbZppW4sWnzRCwpDbIWrvqRI0VP39homSC1VzM9pmkdx4tNiSolJ7zMzY7B/HaPtY9I1CL/DoSkIprZK6MpxLEEXyq//CEryIVkun3us/Mco0SRzFGgsQ1LkJX9SRiD/gPc6JsaOu8at+Mai1lufQZvn/hWdn6fv+U5hQ8eBM3sU1Eoq/nQ3FuS/YyOK9zn9kLJAX2AB9c1/lI2QyTT7wMQLJsnxUo3z7rMMzTDa+nXn0t2R6ARbapU67NvRAdbYuN5aJnC/NslEoCPv1YLraKW8EvQ3eyY3llF5MhsH9hEdxk4yjJtJLlS0jytQ6CV7XIkcmqoUQ7dK2V0XYx28hpqg4bWEvXn6KDv6hLB9BzMPIni+cra3JeTF5k9AZ2W8lidIuZzXuzPWCeNwHe6EtiZh7jxoopaCCcHelkQNn6GcKFwaDe2bjei6/+cGDxd7xfEzB3pi4ha/dd2nzQUzlwKtVlWkvkQvr2E/MpW/6UCN0IAMR4DfLx97L1G5ATiwtmOb7kE2hpuJLJDY6GAWZJ3tJJKoUsrrVmeuwvA8EUfE1T/o="
on:
tags: true
- provider: releases
skip_cleanup: true
file_glob: true
file: "../*.deb"
tag_name: "nightly"
prerelease: true
name: Automatic nightly build by Travis on $(date +'%F %T %Z').
target_commitish: $TRAVIS_COMMIT
api_key:
secure: "YKY4M95GpA7fLgxM/iLsC5blaQAmcv4Vlp8YG4MBLOdowEhUO6Yudvtn9Rq3VqWbbY1KXaaNiE4UEvGNLv+lm5h4iJU47+tLsKxu/lXEoeZ6lIM5QNpoa1g3WmNEbZppW4sWnzRCwpDbIWrvqRI0VP39homSC1VzM9pmkdx4tNiSolJ7zMzY7B/HaPtY9I1CL/DoSkIprZK6MpxLEEXyq//CEryIVkun3us/Mco0SRzFGgsQ1LkJX9SRiD/gPc6JsaOu8at+Mai1lufQZvn/hWdn6fv+U5hQ8eBM3sU1Eoq/nQ3FuS/YyOK9zn9kLJAX2AB9c1/lI2QyTT7wMQLJsnxUo3z7rMMzTDa+nXn0t2R6ARbapU67NvRAdbYuN5aJnC/NslEoCPv1YLraKW8EvQ3eyY3llF5MhsH9hEdxk4yjJtJLlS0jytQ6CV7XIkcmqoUQ7dK2V0XYx28hpqg4bWEvXn6KDv6hLB9BzMPIni+cra3JeTF5k9AZ2W8lidIuZzXuzPWCeNwHe6EtiZh7jxoopaCCcHelkQNn6GcKFwaDe2bjei6/+cGDxd7xfEzB3pi4ha/dd2nzQUzlwKtVlWkvkQvr2E/MpW/6UCN0IAMR4DfLx97L1G5ATiwtmOb7kE2hpuJLJDY6GAWZJ3tJJKoUsrrVmeuwvA8EUfE1T/o="
on:
branch: master
before_deploy:
- >
if [[ $TRAVIS_BRANCH == "master" ]]; then
gh release delete nightly -R ${TRAVIS_REPO_SLUG} -y
git tag -f nightly || true &&
git remote add gh https://${GITHUB_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git &&
git push --delete -f gh nightly || true &&
git push -f gh nightly || true
fi
29 changes: 1 addition & 28 deletions debian/rules
Original file line number Diff line number Diff line change
@@ -1,32 +1,5 @@
#!/usr/bin/make -f
# Sample debian/rules that uses debhelper.
# This file is public domain software, originally written by Joey Hess.
#
# This version is for a multibinary package. It also allows you to build any
# of the binary packages independantly, via binary-<package> targets.
#export DH_VERBOSE = 1

# Uncomment this to turn on verbose mode.
export DH_VERBOSE=1

#Define version packaging
#Exclude nighly version
VERSION=$(shell git tag -l --points-at HEAD |grep -v 'nightly')
ifeq ($(strip $(VERSION)),)
VERSION=$(shell git tag | sort -V |grep -v nightly|tail -1)
ifeq ($(strip $(VERSION)),)
export VERSION="0.0.0"
endif
VERSION:=$(VERSION)+$(shell date +'%y%m%d%H%M%S')
IS_NIGHTLY=1
endif

clean:
dh clean
rm -f debian/files
(git rev-parse --git-dir > /dev/null 2>&1 && git checkout debian/changelog) || true
ifeq ($(strip $(IS_NIGHTLY)),1)
(git rev-parse --git-dir > /dev/null 2>&1 && dch -m -b -v $(VERSION) autobuild) || true
endif
%:
dh $@

0 comments on commit 0f84322

Please sign in to comment.