mirror of
https://github.com/moepman/acertmgr.git
synced 2024-11-16 11:09:19 +01:00
.drone.yml: upload releases to PyPI
This commit is contained in:
parent
2911e05165
commit
a63eabd0ee
14
.drone.yml
14
.drone.yml
@ -6,13 +6,23 @@ steps:
|
|||||||
image: debian:buster-slim
|
image: debian:buster-slim
|
||||||
commands:
|
commands:
|
||||||
- apt update -qq -y
|
- 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
|
- git fetch --tags
|
||||||
|
- python3 setup.py sdist bdist_wheel
|
||||||
- sed "s/=determine_version()/='$(python3 setup.py --version)'/gi" -i setup.py
|
- sed "s/=determine_version()/='$(python3 setup.py --version)'/gi" -i setup.py
|
||||||
- sed "s@('readme'@('share/doc/python3-acertmgr'@" -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 --command-packages=stdeb.command bdist_deb
|
||||||
- python3 setup.py --version > version.github
|
- 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
|
image: plugins/github-release
|
||||||
settings:
|
settings:
|
||||||
api_key:
|
api_key:
|
||||||
|
Loading…
Reference in New Issue
Block a user