From a58a635626016f81ceb8fa308cf9149c034ecf2d Mon Sep 17 00:00:00 2001 From: squidfunk Date: Wed, 11 Dec 2019 18:11:11 +0100 Subject: [PATCH] Fixed workflow --- .github/workflows/ci.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 10352acdb..b8f32faef 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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##*/}