Unverified Commit 3bcc2d43 authored by Muyang Li's avatar Muyang Li Committed by GitHub
Browse files

chore: fix the wheel hf uploading (#599)

* fix the hf uploading

* use conda python
parent 433f0b22
...@@ -92,7 +92,7 @@ jobs: ...@@ -92,7 +92,7 @@ jobs:
run: | run: |
pip install huggingface_hub pip install huggingface_hub
for whl in dist/*.whl; do for whl in dist/*.whl; do
hf upload nunchaku-tech/nunchaku "$whl" . hf upload nunchaku-tech/nunchaku "$whl"
done done
- name: Clean up - name: Clean up
if: always() if: always()
...@@ -141,16 +141,13 @@ jobs: ...@@ -141,16 +141,13 @@ jobs:
prerelease: false prerelease: false
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Upload wheels to HuggingFace Hub - name: Upload wheels to HuggingFace Hub
shell: cmd shell: cmd
env: env:
HF_TOKEN: ${{ secrets.HF_WHEEL_UPLOAD_TOKEN }} HF_TOKEN: ${{ secrets.HF_WHEEL_UPLOAD_TOKEN }}
run: | run: |
call C:\Users\muyangl\miniconda3\condabin\activate.bat activate
pip install huggingface_hub pip install huggingface_hub
for %%w in (dist\*.whl) do ( for %%w in (dist\*.whl) do (
hf upload nunchaku-tech/nunchaku "%%w" . hf upload nunchaku-tech/nunchaku "%%w"
) )
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment