name: Sync to Hugging Face Space on: push: branches: [main] jobs: sync-to-hub: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 with: fetch-depth: 0 lfs: true - name: Push to Hugging Face Hub env: HF_TOKEN: ${{ secrets.HF_TOKEN }} run: | HF_USERNAME="kcooley03" HF_SPACE_NAME="LiftLocal" git push https://${HF_USERNAME}:${HF_TOKEN}@huggingface.co/spaces/${HF_USERNAME}/${HF_SPACE_NAME} main