| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- name: build-windows-package
- on:
- push:
- branches:
- - main
- jobs:
- deploy:
- runs-on: ubuntu-latest
- steps:
- - name: Remove unnecessary files
- run: |
- sudo rm -rf /usr/share/dotnet
- sudo rm -rf /opt/ghc
- sudo rm -rf /usr/local/lib/android
- sudo rm -rf "/usr/local/share/boost"
- sudo rm -rf "$AGENT_TOOLSDIRECTORY"
- - uses: actions/setup-python@v5
- with:
- python-version: 3.12
- - uses: actions/checkout@v4
- with:
- path: ./fish-speech
- - name: Setup Hugging Face CLI
- run: pip3 install huggingface-hub
- - name: Download Windows Binaries
- env:
- HF_TOKEN: ${{ secrets.HF_TOKEN }}
- run: |
- if [[ "${{ github.actor }}" = "Leng Yue" ]] || [[ "${{ github.actor }}" = "AnyaCoder" ]] || [[ "${{ github.actor }}" = "pre-commit-ci[bot]" ]]; then
- ls -la
- huggingface-cli download fishaudio/fish-speech-1 fish-speech-v1.1.zip \
- --local-dir ./ --local-dir-use-symlinks False
- unzip -q fish-speech-v1.1.zip -d fish-speech-zip
- rm fish-speech-v1.1.zip
- mv fish-speech-zip/fish-speech/fishenv fish-speech-zip/fish-speech/ffmpeg.exe \
- fish-speech-zip/fish-speech/checkpoints fish-speech-zip/fish-speech/ffprobe.exe ./fish-speech
- rm -rf fish-speech-zip
- huggingface-cli download fishaudio/fish-speech-1 text2semantic-sft-large-v1.1-4k.pth \
- --local-dir ./fish-speech/checkpoints --local-dir-use-symlinks False
- huggingface-cli download fishaudio/fish-speech-1 text2semantic-sft-medium-v1.1-4k.pth \
- --local-dir ./fish-speech/checkpoints --local-dir-use-symlinks False
- huggingface-cli download fishaudio/fish-speech-1 firefly-gan-base-generator.ckpt \
- --local-dir ./fish-speech/checkpoints --local-dir-use-symlinks False
- huggingface-cli download fishaudio/fish-speech-1 vits_decoder_v1.1.ckpt \
- --local-dir ./fish-speech/checkpoints --local-dir-use-symlinks False
- huggingface-cli download fishaudio/fish-speech-1 vq-gan-group-fsq-2x1024.pth \
- --local-dir ./fish-speech/checkpoints --local-dir-use-symlinks False
- else
- echo "Author is not Leng Yue nor AnyaCoder. No upload performed."
- fi
- - uses: actions/upload-artifact@v4
- with:
- name: fish-speech-main-${{ github.run_id }}
- path: ./fish-speech
- - name: Upload to Hugging Face
- env:
- HF_TOKEN: ${{ secrets.HF_TOKEN }}
- run: |
- if [ "${{ github.actor }}" = "AnyaCoder" ]; then
- echo "Author is AnyaCoder. Performing the zipping && upload."
- zip -qr fish-speech-main-${{ github.run_id }}.zip ./fish-speech
- huggingface-cli upload SpicyqSama007/fish-speech-packed ./fish-speech-main-${{ github.run_id }}.zip fish-speech-main-${{ github.run_id }}.zip
- else
- echo "Author is not AnyaCoder. No upload performed."
- fi
|