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

Commit fb6d344

Browse files
authored
Allow switching users to adapt to 2FA of PyPI (#8)
1 parent 277d15c commit fb6d344

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

.github/workflows/cd.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ jobs:
3939
DOCKER_IMAGE: "quay.io/pypa/manylinux1_x86_64"
4040
PYABI: ${{ matrix.python-abis }}
4141
BUILD_STATIC: ${{ matrix.build-static }}
42-
PYPI_PWD: ${{ secrets.PYPI_PASSWORD }}
42+
TWINE_USERNAME: ${{ secrets.PYPI_USER }}
43+
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
4344
run: |
4445
source ./.github/workflows/reload-env.sh
4546
source ./.github/workflows/upload-packages.sh

.github/workflows/upload-packages.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,6 @@ else
6363
echo " pypi" >> ~/.pypirc
6464
echo "[pypi]" >> ~/.pypirc
6565
echo "repository=$PYPI_REPO" >> ~/.pypirc
66-
echo "username=pyodps" >> ~/.pypirc
67-
echo "password=$PYPI_PWD" >> ~/.pypirc
6866

6967
python -m pip install twine
7068
python -m twine upload -r pypi --skip-existing dist/*

0 commit comments

Comments
 (0)