use api token instead of username and pw for pypi

This commit is contained in:
Jonathan Wren 2020-01-13 20:45:56 -08:00
parent 6d53ed1d94
commit fcd8a11ae8

View file

@ -117,7 +117,7 @@ jobs:
- stage: Deploy - stage: Deploy
if: branch = master AND tag IS present if: branch = master AND tag IS present
before_deploy: before_deploy:
- poetry config http-basic.pypi "$PYPI_USER" "$PYPI_PASS" - poetry config pypi-token.pypi "$PYPI_TOKEN"
- poetry version "$TRAVIS_TAG" - poetry version "$TRAVIS_TAG"
- echo __version__ = \"$TRAVIS_TAG\" > jrnl/__version__.py - echo __version__ = \"$TRAVIS_TAG\" > jrnl/__version__.py
- poetry build - poetry build