CoolFace
Apppublic

essainsham/UAE-Real-Estate-Agent

sourceHugging Faceupdated 1mo agoView on Hugging Face
0likes
sync.yml38 linesDownload Raw Back to workflows
1name: Sync to Hugging Face Space2 3on:4  push:5    branches: [main]6  workflow_dispatch:7 8jobs:9  sync-to-hub:10    runs-on: ubuntu-latest11 12    steps:13      - name: Checkout repository14        uses: actions/checkout@v415        with:16          fetch-depth: 117          lfs: true18 19      - name: Install Git LFS20        run: |21          git lfs install22          git lfs pull23 24      - name: Push to Hugging Face25        env:26          HF_TOKEN: ${{ secrets.HF_TOKEN }}27        run: |28          git config --global user.email "essainsham17@gmail.com"29          git config --global user.name "Essa Insham"30 31          # Build a single-commit snapshot (no history, keeps repo light)32          git checkout --orphan hf-deploy33          git add -A34          git commit -m "Deploy from GitHub: ${GITHUB_SHA::7}"35 36          git push --force \37            "https://essainsham:$HF_TOKEN@huggingface.co/spaces/essainsham/UAE-Real-Estate-Agent" \38            hf-deploy:main