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 - poetry run pytest
- name: publish - name: publish
when: # when:
branch: # branch:
- master # - master
event: # event:
exclude: # exclude:
- pull_request # - pull_request
image: python:3.7 image: python:3.7
environment: environment:
GITEA_PACKAGE_REPO: GITEA_PACKAGE_REPO:
@ -28,7 +28,7 @@ steps:
commands: commands:
- pip install poetry twine - pip install poetry twine
- poetry build - 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 - twine upload -r gitea ./dist/*.whl