From badc2729f1d48d865b2f12adce1e4c57ba0d4967 Mon Sep 17 00:00:00 2001 From: leohsiao Date: Wed, 13 Dec 2023 22:40:45 +0800 Subject: [PATCH] [ci] use api token when uploading dist to pypi.org --- .github/workflows/make_package.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/make_package.sh b/.github/workflows/make_package.sh index a4373b8..cccf3b7 100644 --- a/.github/workflows/make_package.sh +++ b/.github/workflows/make_package.sh @@ -28,7 +28,7 @@ reset_workdir(){ } # Install dependencies -python3 -m pip install setuptools wheel twine +python3 -m pip install setuptools wheel twine # Clear dist directory rm -rf $DIST_DIR @@ -92,4 +92,4 @@ make_wheels reset_workdir # upload to pypi.org -twine upload $DIST_DIR/* +twine upload -u __token__ $DIST_DIR/*