From db21e9051a97c89b84c8342bcd598301ad505639 Mon Sep 17 00:00:00 2001 From: Fangjun Kuang Date: Sat, 22 Jul 2023 13:12:08 +0800 Subject: [PATCH] small fixes --- .github/workflows/windows-x64-cpu-wheels.yml | 21 ++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/.github/workflows/windows-x64-cpu-wheels.yml b/.github/workflows/windows-x64-cpu-wheels.yml index 326acc5..5b2c885 100644 --- a/.github/workflows/windows-x64-cpu-wheels.yml +++ b/.github/workflows/windows-x64-cpu-wheels.yml @@ -100,11 +100,24 @@ jobs: git status git lfs track "*.whl" + function push_to_huggingface() { + git clone https://huggingface.co/csukuangfj/kaldifeat huggingface + cd huggingface + git pull + + mkdir -p windows-cpu + cp -v ../wheelhouse/*.whl ./windows-cpu + git status + git lfs track "*.whl" + git add . + git commit -m "upload windows-cpu wheel for torch ${{ matrix.torch }} python ${{ matrix.python-version }}" + git push https://csukuangfj:$HF_TOKEN@huggingface.co/csukuangfj/kaldifeat main + + cd .. + rm -rf huggingface + } function retry() { $* || (sleep 1 && $*) || (sleep 2 && $*) || (sleep 4 && $*) || (sleep 8 && $*) } - retry git pull && cp -v ../wheelhouse/*.whl ./windows-cpu && git status && git add . && git commit -m "upload windows-cpu wheel for torch ${{ matrix.torch }} python ${{ matrix.python-version }}" && git push https://csukuangfj:$HF_TOKEN@huggingface.co/csukuangfj/kaldifeat main - - cd .. - rm -rf huggingface + retry push_to_huggingface