firestarter-chat / .github /workflows /deploy-hf-space.yml
FireStarter2040's picture
Fix HF deploy workflow and ignore space clone
4de3eaf
raw
history blame contribute delete
811 Bytes
name: Deploy to Hugging Face Space
on:
push:
branches: [main]
jobs:
deploy:
runs-on: ubuntu-latest
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
HF_SPACE_ID: FireStarter2040/firestarter-chat
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Setup Git identity
run: |
git config --global user.name "FireStarter CI"
git config --global user.email "ci@firestarter.local"
- name: Set HuggingFace remote
run: |
git remote remove hf || true
git remote add hf https://huggingface.co/spaces/$HF_SPACE_ID
git remote set-url hf https://FireStarter2040:$HF_TOKEN@huggingface.co/spaces/$HF_SPACE_ID
- name: Force push to HF Space
run: |
git push hf main --force