soci2 / .github /workflows /sync-to-hf.yml
RayMelius's picture
Update HF sync workflow to target soci2 space
eda96a8
raw
history blame contribute delete
509 Bytes
name: Sync to HuggingFace Space
on:
push:
branches: [master]
jobs:
sync:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0 # full history so HF gets all commits
- name: Push to HuggingFace Space
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
run: |
git remote add hf https://RayMelius:${HF_TOKEN}@huggingface.co/spaces/RayMelius/soci2
git push hf master:main --force