build-windows-package.yml 853 B

123456789101112131415161718192021222324252627282930
  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@v5
  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. ls -la
  21. huggingface-cli download fishaudio/fish-speech-1 fish-speech-v1.0.zip \
  22. --local-dir ./ --local-dir-use-symlinks False
  23. unzip -q fish-speech-v1.0.zip -d fish-speech-zip
  24. mv fish-speech-zip/fish-speech/fishenv fish-speech-zip/fish-speech/ffmpeg.exe ./fish-speech
  25. - uses: actions/upload-artifact@v4
  26. with:
  27. name: fish-speech-main-${{ github.run_id }}
  28. path: ./fish-speech