Merge pull request #7061 from zhoubinxin/dev

ci: fix huggingface deploy errors and track .jpg file types
This commit is contained in:
Timothy Jaeryang Baek 2024-11-19 18:22:35 -08:00 committed by GitHub
commit 0e0a9b4b27
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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