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