-
Notifications
You must be signed in to change notification settings - Fork 163
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
04a3e1c
commit c31e673
Showing
2 changed files
with
68 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -70,6 +70,40 @@ jobs: | |
name: sherpa-ncnn-wasm-simd-en | ||
path: ./sherpa-ncnn-wasm-simd-*.tar.bz2 | ||
|
||
- name: Publish to ModelScope | ||
env: | ||
MS_TOKEN: ${{ secrets.MODEL_SCOPE_GIT_TOKEN }} | ||
uses: nick-fields/retry@v2 | ||
with: | ||
max_attempts: 20 | ||
timeout_seconds: 200 | ||
shell: bash | ||
command: | | ||
SHERPA_NCNN_VERSION=v$(grep "SHERPA_NCNN_VERSION" ./CMakeLists.txt | cut -d " " -f 2 | cut -d '"' -f 2) | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Fangjun Kuang" | ||
rm -rf huggingface | ||
export GIT_LFS_SKIP_SMUDGE=1 | ||
git clone http://www.modelscope.cn/studios/k2-fsa/web-assembly-asr-sherpa-ncnn-en.git ms | ||
cd ms | ||
git fetch | ||
git pull | ||
git merge -m "merge remote" --ff origin main | ||
cp -v ../sherpa-ncnn-wasm-simd-${SHERPA_NCNN_VERSION}/* . | ||
git status | ||
git lfs track "*.data" | ||
git lfs track "*.wasm" | ||
git add . | ||
git commit -m "update model" | ||
git push http://oauth2:[email protected]/studios/k2-fsa/web-assembly-asr-sherpa-ncnn-en.git | ||
- name: Publish to huggingface | ||
env: | ||
HF_TOKEN: ${{ secrets.HF_TOKEN }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -70,6 +70,40 @@ jobs: | |
name: sherpa-ncnn-wasm-simd-zh-en | ||
path: ./sherpa-ncnn-wasm-simd-*.tar.bz2 | ||
|
||
- name: Publish to ModelScope | ||
env: | ||
MS_TOKEN: ${{ secrets.MODEL_SCOPE_GIT_TOKEN }} | ||
uses: nick-fields/retry@v2 | ||
with: | ||
max_attempts: 20 | ||
timeout_seconds: 200 | ||
shell: bash | ||
command: | | ||
SHERPA_NCNN_VERSION=v$(grep "SHERPA_NCNN_VERSION" ./CMakeLists.txt | cut -d " " -f 2 | cut -d '"' -f 2) | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Fangjun Kuang" | ||
rm -rf huggingface | ||
export GIT_LFS_SKIP_SMUDGE=1 | ||
git clone http://www.modelscope.cn/studios/k2-fsa/web-assembly-asr-sherpa-ncnn-zh-en.git ms | ||
cd ms | ||
git fetch | ||
git pull | ||
git merge -m "merge remote" --ff origin main | ||
cp -v ../sherpa-ncnn-wasm-simd-${SHERPA_NCNN_VERSION}/* . | ||
git status | ||
git lfs track "*.data" | ||
git lfs track "*.wasm" | ||
git add . | ||
git commit -m "update model" | ||
git push http://oauth2:[email protected]/studios/k2-fsa/web-assembly-asr-sherpa-ncnn-zh-en.git | ||
- name: Publish to huggingface | ||
env: | ||
HF_TOKEN: ${{ secrets.HF_TOKEN }} | ||
|