Skip to content

Commit e872208

Browse files
authored
Make PyPI user name configurable (#3130)
1 parent f82aef3 commit e872208

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/pypi-cd.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ jobs:
6666
- name: Release to pypi
6767
shell: bash
6868
env:
69+
PYPI_USR: ${{ secrets.PYPI_USERNAME }}
6970
PYPI_PWD: ${{ secrets.PYPI_PASSWORD }}
7071
run: |
7172
if [[ "$GITHUB_REPOSITORY" == "mars-project/mars" ]]; then
@@ -78,7 +79,7 @@ jobs:
7879
echo " pypi" >> ~/.pypirc
7980
echo "[pypi]" >> ~/.pypirc
8081
echo "repository=$PYPI_REPO" >> ~/.pypirc
81-
echo "username=pyodps" >> ~/.pypirc
82+
echo "username=$PYPI_USR" >> ~/.pypirc
8283
echo "password=$PYPI_PWD" >> ~/.pypirc
8384
python -m pip install twine
8485
python -m twine upload -r pypi --skip-existing wheelhouse/*

0 commit comments

Comments
 (0)