name: Sync to Hugging Face Spaces on: push: branches: [ main ] # Allow manual trigger from the GitHub Actions tab workflow_dispatch: jobs: deploy: runs-on: ubuntu-latest steps: - name: Checkout Code uses: actions/checkout@v4 with: fetch-depth: 0 lfs: true - name: Push to Hugging Face Spaces env: HF_TOKEN: ${{ secrets.HF_TOKEN }} run: | git push --force https://hf_user:$HF_TOKEN@huggingface.co/spaces/MuhammadTayyab0143/bug-detector main