ci: revert deploy-pypi changes

Partially reverts de5bda806d
This commit is contained in:
bastimeyer 2023-01-23 23:18:15 +01:00 committed by Sebastian Meyer
parent 932075c852
commit faece22c35
2 changed files with 8 additions and 5 deletions

View File

@ -147,6 +147,6 @@ jobs:
run: ./script/github-release.py "${STREAMLINK_DIST_DIR}"/*.tar.gz{,.asc}
- name: PyPI release
env:
TWINE_USERNAME: "__token__"
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
PYPI_USER: streamlink
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: ./script/deploy-pypi.sh

View File

@ -19,11 +19,14 @@ else
exit 1
fi
if [[ -z "${TWINE_USERNAME}" ]] || [[ -z "${TWINE_PASSWORD}" ]]; then
echo >&2 "deploy: missing TWINE_USERNAME or TWINE_PASSWORD env var"
if [[ -z "${PYPI_USER}" ]] || [[ -z "${PYPI_PASSWORD}" ]]; then
echo >&2 "deploy: missing PYPI_USER or PYPI_PASSWORD env var"
exit 1
fi
echo >&2 "deploy: Uploading files to PyPI (${version})"
twine upload "${dist_dir}"/streamlink-"${version}"{.tar.gz,-*.whl}{,.asc}
twine upload \
--username "${PYPI_USER}" \
--password "${PYPI_PASSWORD}" \
"${dist_dir}"/streamlink-"${version}"{.tar.gz,-*.whl}{,.asc}
fi