book-rec-with-LLMs / .github /workflows /deploy-to-hf.yml
ymlin105's picture
feat: implement book recommender with FastAPI, vector DB, and Hugging Face deployment
fd6ef00
name: Deploy to Hugging Face Space
on:
push:
branches: [ master ]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Push to Hugging Face Space
run: |
git config --global user.email "gm.ymlin@gmail.com"
git config --global user.name "Yangmei Lin"
git remote add space https://ymlin105:${HF_TOKEN}@huggingface.co/spaces/ymlin105/book-rec-with-LLMs
git push space master:main --force
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}