Skip to content

Add badges for continuous deployment and Hugging Face Spaces in READM… #3

Add badges for continuous deployment and Hugging Face Spaces in READM…

Add badges for continuous deployment and Hugging Face Spaces in READM… #3

Workflow file for this run

name: Sync to Hugging Face hub
on:
push:
branches: [main]
workflow_dispatch:
jobs:
sync-to-hub:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
lfs: true
- name: Sanity-check token
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
run: |
if [ -z "$HF_TOKEN" ]; then
echo "HF_TOKEN is empty ‼️"; exit 1;
fi
echo "Token length: ${#HF_TOKEN}"
- name: Push to hub
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
run: git push https://serverdaun:$HF_TOKEN@huggingface.co/spaces/serverdaun/rag-w-binary-quant.git main --force