Skip to content

Commit 3e62ad6

Browse files
author
Drew Yang
committed
fix: 🐛 missing testpypi credentials
1 parent 912f4c9 commit 3e62ad6

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/release.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ jobs:
2020
PY_VER: ${{matrix.py_ver}}
2121
TWINE_USERNAME: ${{secrets.twine_username}}
2222
TWINE_PASSWORD: ${{secrets.twine_password}}
23+
TWINE_TEST_USERNAME: ${{secrets.twine_test_username}}
24+
TWINE_TEST_PASSWORD: ${{secrets.twine_test_password}}
2325
TESTPYPI: ${{ github.event.inputs.testpypi }}
2426
steps:
2527
- uses: actions/checkout@v4
@@ -39,7 +41,13 @@ jobs:
3941
- name: Publish package
4042
run: |
4143
export HOST_UID=$(id -u)
42-
[ "$TESTPYPI" == "true" ] && export TWINE_REPOSITORY="testpypi" || export TWINE_REPOSITORY="pypi"
44+
if [ "$TESTPYPI" == "true" ]; then
45+
export TWINE_REPOSITORY="testpypi"
46+
export TWINE_USERNAME=${TWINE_TEST_USERNAME}
47+
export TWINE_PASSWORD=${TWINE_TEST_PASSWORD}
48+
else
49+
export TWINE_REPOSITORY="pypi"
50+
fi
4351
docker compose run --build --quiet-pull \
4452
-e TWINE_USERNAME=${TWINE_USERNAME} \
4553
-e TWINE_PASSWORD=${TWINE_PASSWORD} \

0 commit comments

Comments
 (0)