ai-deadlines / .github /workflows /deploy-to-hf.yml
nielsr's picture
nielsr HF Staff
Update action
4e8ce1a
name: Deploy to Hugging Face Space
on:
push:
branches:
- main
workflow_dispatch: # Allow manual trigger
env:
# Configure your Hugging Face Space here (format: username/space-name)
HF_SPACE: huggingface/ai-deadlines
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0 # Fetch full history for proper git push
lfs: true
- name: Push to Hugging Face Space
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
run: |
git push https://nielsr:$HF_TOKEN@huggingface.co/spaces/$HF_SPACE main --force