Add badges for continuous deployment and Hugging Face Spaces in READM… #3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |