Fixed workflow

This commit is contained in:
squidfunk 2019-12-11 18:11:11 +01:00
parent 6ef0d123c7
commit a58a635626

View File

@ -150,9 +150,15 @@ jobs:
- run: python setup.py build sdist bdist_wheel --universal
# Push release to PyPI
- run: twine upload -u ${PYPI_USERNAME} -p ${PYPI_PASSWORD} dist/*
- env:
PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
run: twine upload -u ${PYPI_USERNAME} -p ${PYPI_USERNAME} dist/*
# Push image to Docker Hub
- env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
- run: |
docker login -u ${DOCKER_USERNAME} -p ${DOCKER_PASSWORD}
docker tag ${GITHUB_REPOSITORY} ${GITHUB_REPOSITORY}:${GITHUB_REF##*/}