Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit 46cfac8

Browse files
Update: test run new CI for package python
1 parent 372425e commit 46cfac8

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

.github/workflows/python-package.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)