From 2c2c2ea9e1350e097d8f04f297eeaf0ca714941d Mon Sep 17 00:00:00 2001 From: bx Date: Wed, 20 Nov 2024 10:15:40 +0800 Subject: [PATCH] fix(workflow): fix huggingface deploy errors and track .jpg file types --- .github/workflows/deploy-to-hf-spaces.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/deploy-to-hf-spaces.yml b/.github/workflows/deploy-to-hf-spaces.yml index aa8bbcfce..7fc66acf5 100644 --- a/.github/workflows/deploy-to-hf-spaces.yml +++ b/.github/workflows/deploy-to-hf-spaces.yml @@ -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 }}"