ci: replace poetry with build and twine
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
b87310b525
commit
c5c6ecb180
15
.drone.yml
15
.drone.yml
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue