From a63eabd0ee12d391b88f61e26a822bf978971a1c Mon Sep 17 00:00:00 2001 From: Markus Hauschild Date: Tue, 1 Oct 2019 13:08:10 +0200 Subject: [PATCH] .drone.yml: upload releases to PyPI --- .drone.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 6d4bec0..83a44d2 100644 --- a/.drone.yml +++ b/.drone.yml @@ -6,13 +6,23 @@ steps: image: debian:buster-slim commands: - apt update -qq -y - - apt install -qq -y build-essential fakeroot git python-all python3-cryptography python3-stdeb + - apt install -qq -y build-essential fakeroot git python-all python3-cryptography python3-stdeb python3-wheel - git fetch --tags + - python3 setup.py sdist bdist_wheel - 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 +- name: pypi_publish + image: plugins/pypi + settings: + username: __token__ + password: + from_secret: pypi_token + skip_build: True + when: + event: tag +- name: github_publish image: plugins/github-release settings: api_key: