Skip to content

Update fetch-depth in deploy-hf.yml #2

Update fetch-depth in deploy-hf.yml

Update fetch-depth in deploy-hf.yml #2

Workflow file for this run

name: Deploy to Hugging Face Space
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Push to Hugging Face
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
HF_USERNAME: ${{ secrets.HF_USERNAME }}
run: |
git config --global user.email "github-actions@github.com"
git config --global user.name "GitHub Actions"
git remote add hf https://${HF_USERNAME}:${HF_TOKEN}@huggingface.co/spaces/${HF_USERNAME}/finverify-api
git push hf HEAD:main --force