build-windows-package.yml 833 B

1234567891011121314151617181920212223242526272829
  1. name: build-windows-package
  2. on:
  3. push:
  4. branches:
  5. - main
  6. jobs:
  7. deploy:
  8. runs-on: ubuntu-latest
  9. steps:
  10. - uses: actions/setup-python@v4
  11. with:
  12. python-version: 3.12
  13. - uses: actions/checkout@v4
  14. with:
  15. path: ./fish-speech
  16. - run: pip3 install huggingface-hub
  17. - env:
  18. HF_TOKEN: ${{ secrets.HF_TOKEN }}
  19. run: |
  20. huggingface-cli download fishaudio/fish-speech-1 fish-speech-v1.0.zip \
  21. --local-dir ./ --local-dir-use-symlinks False
  22. unzip fish-speech-v1.0.zip -d fish-speech-zip
  23. mv fish-speech-zip/fish-speech/fishenv fish-speech-zip/fish-speech/ffmpeg.exe ./fish-speech
  24. - uses: actions/upload-artifact@v4
  25. with:
  26. name: fish-speech-main-${{ github.run_id }}
  27. path: ./fish-speech