clawbody / .github /workflows /sync-to-huggingface.yml
tomrikert
Add GitHub Action to auto-sync to Hugging Face Space
9ef7806
raw
history blame contribute delete
559 Bytes
name: Sync to Hugging Face Space
on:
push:
branches: [main]
workflow_dispatch: # Allow manual trigger
jobs:
sync-to-hub:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
lfs: true
- name: Push to Hugging Face
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
run: |
git remote add huggingface https://huggingface:$HF_TOKEN@huggingface.co/spaces/tomrikert/clawbody
git push huggingface main --force