File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 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
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} \
You can’t perform that action at this time.
0 commit comments