StockEx / .github /workflows /deploy-hf.yml
RayMelius's picture
Add GitHub Actions workflow to auto-deploy to HuggingFace on push to main
3e74d36
raw
history blame contribute delete
562 Bytes
name: Deploy to HuggingFace Spaces
on:
push:
branches: [ main ]
jobs:
sync:
name: Push to HuggingFace
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0 # full history so HF receives all commits
- name: Push to HuggingFace Space
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
run: |
git remote add huggingface https://RayMelius:${HF_TOKEN}@huggingface.co/spaces/RayMelius/StockEx.git
git push huggingface main --force