| name: Deploy to Hugging Face Space |
|
|
| on: |
| push: |
| branches: |
| - main |
|
|
| jobs: |
| deploy: |
| runs-on: ubuntu-latest |
| steps: |
| - name: Checkout c贸digo |
| uses: actions/checkout@v4 |
| with: |
| fetch-depth: 0 |
| lfs: false |
|
|
| - 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" |
| |
| |
| rm -f vc_redist.x64.exe |
|
|
| |
| |
| git checkout --orphan hf-deploy |
|
|
| |
| git add -A |
| git commit -m "deploy: $(date +'%Y-%m-%d %H:%M')" |
|
|
| |
| git push --force \ |
| https://user:${HF_TOKEN}@huggingface.co/spaces/pmja/kanban \ |
| hf-deploy:main |