name: Sync to HuggingFace Space on: push: branches: - master jobs: sync-to-hub: runs-on: ubuntu-latest steps: - name: Checkout repository uses: actions/checkout@v5 with: fetch-depth: 0 lfs: true - name: Push to HuggingFace Space env: HF_TOKEN: ${{ secrets.HF_TOKEN }} run: | git config --global user.email "action@github.com" git config --global user.name "GitHub Action" git push https://huanx:${HF_TOKEN}@huggingface.co/spaces/huanx/ds2api-browser HEAD:main --force