Spaces:
Configuration error
Configuration error
Download .github/workflows/deploy.yml from Ashad001/ultimate-rag: direct link, hf CLI and curl.
- Browser
- Download file 703 Bytes
-
https://huggingface.co/spaces/Ashad001/ultimate-rag/resolve/main/.github/workflows/deploy.yml
- Command line
-
hf download hf://spaces/Ashad001/ultimate-rag/.github/workflows/deploy.yml
-
curl -L -o deploy.yml https://huggingface.co/spaces/Ashad001/ultimate-rag/resolve/main/.github/workflows/deploy.yml
703 Bytes
| name: Sync to Hugging Face hub | |
| on: | |
| push: | |
| branches: [main] | |
| workflow_dispatch: | |
| jobs: | |
| sync-to-hub: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout backend directory | |
| uses: actions/checkout@v2 | |
| with: | |
| fetch-depth: 0 | |
| path: backend | |
| - name: Push to Hugging Face hub | |
| env: | |
| HF_TOKEN: ${{ secrets.HF_TOKEN }} | |
| run: | | |
| cd backend | |
| git remote remove origin || true | |
| git remote add origin https://Ashad001:${{ secrets.HF_TOKEN }}@huggingface.co/spaces/Ashad001/Ultimate-RAG | |
| git add . | |
| git commit -m "Sync backend to Hugging Face hub" || true | |
| git push --force origin main | |