name: upload-models on: push: branches: - upload-models workflow_dispatch: concurrency: group: upload-models-${{ github.ref }} cancel-in-progress: true jobs: upload-models: if: github.repository_owner == 'k2-fsa' || github.repository_owner == 'csukuangfj' name: upload models runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: os: [ubuntu-latest] python-version: ["3.10"] steps: - uses: actions/checkout@v4 - name: Zipformer CTC (non-streaming) shell: bash run: | git lfs install names=( sherpa-onnx-zipformer-ctc-zh-int8-2025-07-03 sherpa-onnx-zipformer-ctc-zh-2025-07-03 sherpa-onnx-zipformer-ctc-zh-fp16-2025-07-03 ) for name in ${names[@]}; do git clone https://huggingface.co/csukuangfj/$name pushd $name git lfs pull rm -rf .git rm -rfv .gitattributes ls -lh popd tar cjfv $name.tar.bz2 $name rm -rf $name ls -lh *.tar.bz2 done - name: Vietnamese (zipformer) if: false shell: bash run: | rm -rf models mkdir models cd models cat >README.md <README.md <