From 11d43d4817c1fb69c5d5bf7b94fe1c9f67e3b8cf Mon Sep 17 00:00:00 2001 From: Markus Hauschild Date: Tue, 17 Sep 2019 15:51:21 +0200 Subject: [PATCH] build packages via drone.io --- .drone.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..6d4bec0 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,24 @@ +kind: pipeline +name: python37-buster + +steps: +- name: build + image: debian:buster-slim + commands: + - apt update -qq -y + - apt install -qq -y build-essential fakeroot git python-all python3-cryptography python3-stdeb + - git fetch --tags + - sed "s/=determine_version()/='$(python3 setup.py --version)'/gi" -i setup.py + - sed "s@('readme'@('share/doc/python3-acertmgr'@" -i setup.py + - python3 setup.py --command-packages=stdeb.command bdist_deb + - python3 setup.py --version > version.github +- name: publish + image: plugins/github-release + settings: + api_key: + from_secret: github_token + draft: true + files: deb_dist/*.deb + title: version.github + when: + event: tag