ci: replace poetry with build and twine
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Luca 2023-12-14 02:33:46 +01:00
parent b87310b525
commit c5c6ecb180
1 changed files with 5 additions and 10 deletions

View File

@ -17,7 +17,7 @@ steps:
export PATH="$$DRONE_WORKSPACE/.venv/bin:$$PATH"
- echo $$PATH
- which pip
- pip install black flake8 isort poetry
- pip install black build flake8 isort twine
- name: check style
image: python:3.11-alpine
@ -31,21 +31,16 @@ steps:
image: python:3.11-alpine
commands:
- *path
- poetry build
when:
event:
- pr
- push
- python -m build
- name: build and publish
- name: publish
image: python:3.11-alpine
commands:
- *path
- poetry publish --build --repository git.luj0ga.de
- twine upload --repository-url https://git.luj0ga.de/api/packages/kontakt/pypi -u ''
environment:
POETRY_PYPI_TOKEN_git.luj0ga.de:
TwINE_PASSWORD:
from_secret: repo_token
POETRY_REPOSITORIES_git.luj0ga.de_URL: https://git.luj0ga.de/api/packages/kontakt/pypi
when:
event:
- tag