Spaces:
Running
Running
name: Sync to Hugging Face Space | |
on: | |
push: | |
branches: [main] | |
workflow_dispatch: | |
jobs: | |
sync-to-hub: | |
runs-on: ubuntu-latest | |
environment: huggingface-space | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Push to Hugging Face | |
env: | |
HF_TOKEN: ${{ secrets.HF_TOKEN }} | |
run: | | |
git remote add space https://huggingface.co/spaces/HumeAI/expressive-tts-arena | |
git config user.name "github-actions[bot]" | |
git config user.email "github-actions[bot]@users.noreply.github.com" | |
git push --force https://username:${{ secrets.HF_TOKEN }}@huggingface.co/spaces/HumeAI/expressive-tts-arena main |