Skip to content

Commit 1350b8b

Browse files
committed
🐛 Avoid broken env vars passed by GHA from host
Fixes #112.
1 parent dfae161 commit 1350b8b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

twine-upload.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22
set -Eeuo pipefail
33

44

5+
# NOTE: These variables are needed to combat GitHub passing broken env vars
6+
# NOTE: from the runner VM host runtime.
7+
# Ref: https://github.com/pypa/gh-action-pypi-publish/issues/112
8+
export PATH="$(python -m site --user-base)/bin:${PATH}"
9+
export PYTHONPATH="$(python -m site --user-site):${PYTHONPATH}"
10+
11+
512
if [[
613
"$INPUT_USER" == "__token__" &&
714
! "$INPUT_PASSWORD" =~ ^pypi-

0 commit comments

Comments
 (0)