Skip to content

Commit 9695d2a

Browse files
committed
Fix upload pypi and github release
1 parent 400d830 commit 9695d2a

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

chdb/build_mac_arm64.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,5 +105,17 @@ gh release upload v${CHDB_VERSION} macos-arm64-libchdb.tar.gz --clobber
105105

106106

107107
cd ${PROJ_DIR}
108+
# Set environment variables for PyPI upload
109+
export TWINE_USERNAME=__token__
110+
export TWINE_PASSWORD=$(cat ~/.config/pypi.token)
111+
108112
make pub
109113

114+
# Upload wheel files to GitHub release
115+
echo "Uploading wheel files to GitHub release..."
116+
for wheel in dist/*.whl; do
117+
if [ -f "$wheel" ]; then
118+
gh release upload v${CHDB_VERSION} "$wheel" --clobber
119+
echo "Uploaded $wheel"
120+
fi
121+
done

0 commit comments

Comments
 (0)