Nephalem/llama-cpp-telegram_bot
0
1---2name: Deploy to Hugging Face Space3 4"on":5 push:6 branches:7 - main8 9jobs:10 deploy:11 runs-on: ubuntu-latest12 steps:13 - name: Checkout repository14 uses: actions/checkout@v315 - name: Push to Hugging Face Space16 env:17 HF_TOKEN: ${{ secrets.HF_TOKEN }}18 HF_SPACE: ${{ secrets.HF_SPACE }}19 run: |20 git clone \21 https://__token__:${HF_TOKEN}@huggingface.co/spaces/${HF_SPACE} \22 /tmp/hf_space23 rsync -av --delete --exclude=".git" ./ /tmp/hf_space/24 cd /tmp/hf_space25 git config user.name "github-actions"26 git config user.email "github-actions@github.com"27 git add .28 git commit -m "🚀 Auto-deploy from GitHub" || echo "No changes"29 git push origin main30 