test env stuff
continuous-integration/drone/push Build is passing Details

This commit is contained in:
James Ravenscroft 2022-10-22 16:03:27 +01:00
parent 431e0fa974
commit 47bdb1631b
1 changed files with 7 additions and 7 deletions

View File

@ -11,12 +11,12 @@ steps:
- poetry run pytest
- name: publish
when:
branch:
- master
event:
exclude:
- pull_request
# when:
# branch:
# - master
# event:
# exclude:
# - pull_request
image: python:3.7
environment:
GITEA_PACKAGE_REPO:
@ -28,7 +28,7 @@ steps:
commands:
- pip install poetry twine
- poetry build
- echo "[distutils]\nindex-servers = gitea\n\n[gitea]\nrepository = ${GITEA_PACKAGE_REPO}\nusername = ${GITEA_OWNER}\npassword = ${GITEA_TOKEN}" > ~/.pypirc
- echo "[distutils]\nindex-servers = gitea\n\n[gitea]\nrepository = $${GITEA_PACKAGE_REPO}\nusername = $${GITEA_OWNER}\npassword = $${GITEA_TOKEN}" > ~/.pypirc
- twine upload -r gitea ./dist/*.whl