name: Sync to Hugging Face on: push: branches: [main] workflow_dispatch: jobs: sync: runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v3 with: fetch-depth: 0 lfs: true - name: Push to Hugging Face env: HF_TOKEN: ${{ secrets.HF_TOKEN }} HF_REPO_ID: ${{ secrets.HF_REPO_ID }} run: | git push --force https://IDKHowToCodeFR:$HF_TOKEN@huggingface.co/spaces/$HF_REPO_ID main