Spaces:
Build error
Build error
Download .github/workflows/hugging_face_sync_dev.yml from Sebunya/AskXeno: direct link, hf CLI and curl.
- Browser
- Download file 795 Bytes
-
https://huggingface.co/spaces/Sebunya/AskXeno/resolve/main/.github/workflows/hugging_face_sync_dev.yml
- Command line
-
hf download hf://spaces/Sebunya/AskXeno/.github/workflows/hugging_face_sync_dev.yml
-
curl -L -o hugging_face_sync_dev.yml https://huggingface.co/spaces/Sebunya/AskXeno/resolve/main/.github/workflows/hugging_face_sync_dev.yml
795 Bytes
| name: Sync to Hugging Face Space | |
| on: | |
| push: | |
| branches: | |
| - development | |
| jobs: | |
| sync: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout GitHub repo | |
| uses: actions/checkout@v3 | |
| - name: Clone Hugging Face Space | |
| run: | | |
| git clone https://mukiibi:${{ secrets.HF_TOKEN }}@huggingface.co/spaces/mukiibi/AskXeno hf_space | |
| - name: Sync files | |
| run: | | |
| rsync -av --delete --exclude ".git" ./ hf_space/ --ignore-errors --exclude "hf_space" | |
| - name: Commit & push | |
| run: | | |
| cd hf_space | |
| git config user.email "actions@github.com" | |
| git config user.name "github-actions" | |
| git add . | |
| git commit -m "Sync from GitHub" || echo "No changes to commit" | |
| git push origin main | |