[pre-commit.ci] auto fixes from pre-commit.com hooks #260
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
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 | |
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 }}" = "NoNeedToUpload" ]; 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 |