fix(workflow): fix huggingface deploy errors and track .jpg file types

This commit is contained in:
bx 2024-11-20 10:15:40 +08:00
parent 7f7b1b18cd
commit 2c2c2ea9e1

View File

@ -28,6 +28,8 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
lfs: true
- name: Remove git history
run: rm -rf .git
@ -52,7 +54,9 @@ jobs:
- name: Set up Git and push to Space
run: |
git init --initial-branch=main
git lfs install
git lfs track "*.ttf"
git lfs track "*.jpg"
rm demo.gif
git add .
git commit -m "GitHub deploy: ${{ github.sha }}"