Skip to content
This repository has been archived by the owner on Jan 5, 2024. It is now read-only.

Commit

Permalink
Allow switching users to adapt to 2FA of PyPI (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
wjsi committed Sep 18, 2023
1 parent 277d15c commit fb6d344
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ jobs:
DOCKER_IMAGE: "quay.io/pypa/manylinux1_x86_64"
PYABI: ${{ matrix.python-abis }}
BUILD_STATIC: ${{ matrix.build-static }}
PYPI_PWD: ${{ secrets.PYPI_PASSWORD }}
TWINE_USERNAME: ${{ secrets.PYPI_USER }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
source ./.github/workflows/reload-env.sh
source ./.github/workflows/upload-packages.sh
2 changes: 0 additions & 2 deletions .github/workflows/upload-packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,6 @@ else
echo " pypi" >> ~/.pypirc
echo "[pypi]" >> ~/.pypirc
echo "repository=$PYPI_REPO" >> ~/.pypirc
echo "username=pyodps" >> ~/.pypirc
echo "password=$PYPI_PWD" >> ~/.pypirc

python -m pip install twine
python -m twine upload -r pypi --skip-existing dist/*
Expand Down

0 comments on commit fb6d344

Please sign in to comment.