name: Sync Hugging Face Space on: push: branches: - main workflow_dispatch: permissions: contents: read concurrency: group: sync-hugging-face-space cancel-in-progress: true jobs: sync: runs-on: ubuntu-latest steps: - name: Check out repository uses: actions/checkout@v4 with: fetch-depth: 0 lfs: true - name: Push main to Hugging Face env: HF_TOKEN: ${{ secrets.HF_TOKEN }} run: | git remote add space "https://ashish-soni08:${HF_TOKEN}@huggingface.co/spaces/build-small-hackathon/studyflow-ai" git push --force space main