This repository was archived by the owner on Jul 4, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -256,19 +256,21 @@ jobs:
256256 conda activate hf-upload
257257 python -m pip install hf-transfer huggingface_hub
258258 huggingface-cli login --token ${{ secrets.HUGGINGFACE_TOKEN_WRITE }} --add-to-git-credential
259- huggingface-cli upload ${{env.HF_REPO}} venv.zip . --revision ${{env.HF_PREFIX_BRANCH}}-${{ matrix.os }}-${{ matrix.name }}
259+ huggingface-cli upload ${{env.HF_REPO}} venv.zip --revision ${{env.HF_PREFIX_BRANCH}}-${{ matrix.os }}-${{ matrix.name }}
260260 rm -rf venv.zip
261261 huggingface-cli logout
262262
263263
264264 - name : Upload Artifact Windows
265265 if : runner.os == 'windows'
266- uses : actions/upload-artifact@v4
267- with :
268- name : ${{env.MODEL_NAME}}-${{ matrix.os }}-${{ matrix.name }}
269- path : ${{env.PYTHON_FOLDER}}
270- include-hidden-files : true
271- compression-level : 9
266+ shell : pwsh
267+ run : |
268+ Compress-Archive -Path ${{env.PYTHON_FOLDER}}/* -DestinationPath venv.zip
269+ python -m pip install hf-transfer huggingface_hub
270+ huggingface-cli login --token ${{ secrets.HUGGINGFACE_TOKEN_WRITE }} --add-to-git-credential
271+ huggingface-cli upload ${{env.HF_REPO}} venv.zip --revision ${{env.HF_PREFIX_BRANCH}}-${{ matrix.os }}-${{ matrix.name }}
272+ rm -rf venv.zip
273+ huggingface-cli logout
272274
273275
274276 - name : Post Upload windows
You can’t perform that action at this time.
0 commit comments