dashboard / .github /workflows /deploy.yml
devtools681420's picture
ci: add GitHub Actions workflow for Hugging Face Space deployment
5deae64
Raw
History Blame Contribute Delete
698 Bytes
name: Deploy HuggingFace Space
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Baixar código do GitHub
uses: actions/checkout@v3
with:
fetch-depth: 0
lfs: true
- name: Enviar para Hugging Face
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
run: |
git config --global user.email "action@github.com"
git config --global user.name "github-action"
# Tente usar o caminho 'pmja' se 'devtools681420' falhar
git remote add hf https://user:$HF_TOKEN@huggingface.co/spaces/pmja/dashboard
git push --force hf main