jansahayak / .github /workflows /sync-to-hf.yml
Anmol4521's picture
Upload 64 files
2b5f461 verified
Raw
History Blame Contribute Delete
693 Bytes
name: Sync to Hugging Face Space
on:
push:
branches:
- main
jobs:
sync-to-huggingface:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
lfs: true
- name: Push to Hugging Face Space
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
run: |
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
git remote add hf https://HF_USERNAME:$HF_TOKEN@huggingface.co/spaces/Anmol4521/jansahayak
git push hf main --force