minor fixes

This commit is contained in:
Fangjun Kuang 2025-01-02 11:06:10 +08:00
parent f927c91ce1
commit c8dabb870a

View File

@ -75,7 +75,7 @@ jobs:
pip list pip list
.github/scripts/ljspeech/TTS/run-matcha.sh .github/scripts/ljspeech/TTS/run-matcha.sh
# .github/scripts/ljspeech/TTS/run.sh .github/scripts/ljspeech/TTS/run.sh
- name: display files - name: display files
shell: bash shell: bash
@ -83,15 +83,13 @@ jobs:
ls -lh ls -lh
- uses: actions/upload-artifact@v4 - uses: actions/upload-artifact@v4
# if: matrix.python-version == '3.9' && matrix.torch-version == '2.3.0' if: matrix.python-version == '3.9' && matrix.torch-version == '2.3.0'
if: false
with: with:
name: generated-test-files-${{ matrix.python-version }}-${{ matrix.torch-version }} name: generated-test-files-${{ matrix.python-version }}-${{ matrix.torch-version }}
path: ./*.wav path: ./*.wav
- name: Release exported onnx models - name: Release exported onnx models
# if: matrix.python-version == '3.9' && matrix.torch-version == '2.3.0' && github.event_name == 'push' if: matrix.python-version == '3.9' && matrix.torch-version == '2.3.0' && github.event_name == 'push'
if: false
uses: svenstaro/upload-release-action@v2 uses: svenstaro/upload-release-action@v2
with: with:
file_glob: true file_glob: true
@ -101,7 +99,6 @@ jobs:
repo_token: ${{ secrets.UPLOAD_GH_SHERPA_ONNX_TOKEN }} repo_token: ${{ secrets.UPLOAD_GH_SHERPA_ONNX_TOKEN }}
tag: tts-models tag: tts-models
- uses: actions/upload-artifact@v4 - uses: actions/upload-artifact@v4
if: matrix.python-version == '3.9' && matrix.torch-version == '2.3.0' if: matrix.python-version == '3.9' && matrix.torch-version == '2.3.0'
with: with:
@ -133,8 +130,7 @@ jobs:
path: ./model-steps-6.onnx path: ./model-steps-6.onnx
- name: Upload models to huggingface - name: Upload models to huggingface
# if: matrix.python-version == '3.9' && matrix.torch-version == '2.3.0' && github.event_name == 'push' if: matrix.python-version == '3.9' && matrix.torch-version == '2.3.0' && github.event_name == 'push'
if: matrix.python-version == '3.9' && matrix.torch-version == '2.3.0'
shell: bash shell: bash
env: env:
HF_TOKEN: ${{ secrets.HF_TOKEN }} HF_TOKEN: ${{ secrets.HF_TOKEN }}
@ -155,8 +151,7 @@ jobs:
popd popd
- name: Release exported onnx models - name: Release exported onnx models
# if: matrix.python-version == '3.9' && matrix.torch-version == '2.3.0' && github.event_name == 'push' if: matrix.python-version == '3.9' && matrix.torch-version == '2.3.0' && github.event_name == 'push'
if: matrix.python-version == '3.9' && matrix.torch-version == '2.3.0'
uses: svenstaro/upload-release-action@v2 uses: svenstaro/upload-release-action@v2
with: with:
file_glob: true file_glob: true