name: Sync with Hugging Face on: push: branches: [main] workflow_dispatch: # Allow maunal trigger jobs: sync: runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v4 with: fetch-depth: 0 lfs: true - name: Push to HF env: HF_TOKEN: ${{ secrets.HF_TOKEN }} HF_USERNAME: ${{ vars.HF_USERNAME }} HF_SPACE: ${{ vars.HF_SPACE }} run: git push https://$HF_USERNAME:$HF_TOKEN@huggingface.co/spaces/$HF_USERNAME/$HF_SPACE main