EuNEx / .github /workflows /deploy-hf.yml
RayMelius's picture
Add GitHub Action for auto-deploy to HF Spaces
55405cf
raw
history blame contribute delete
458 Bytes
name: Deploy to Hugging Face Spaces
on:
push:
branches: [master, main]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Push to Hugging Face
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
run: |
git remote add hf https://RayMelius:${HF_TOKEN}@huggingface.co/spaces/RayMelius/EuNEx || true
git push hf HEAD:main --force