diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index d4e957b..220ade7 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -32,9 +32,11 @@ jobs: env: HF_TOKEN: ${{ secrets.HF_TOKEN }} run: | - git config --global user.email "github-actions[bot]@users.noreply.github.com" - git config --global user.name "github-actions[bot]" cp -r dist/* . + rm -rf .git + git init + git config user.email "github-actions[bot]@users.noreply.github.com" + git config user.name "github-actions[bot]" git add . git commit -m "Update build artifacts" - git push --force https://${{ secrets.HF_USERNAME }}:$HF_TOKEN@huggingface.co/spaces/${{ secrets.HF_USERNAME }}/${{ secrets.SPACE_NAME }} main \ No newline at end of file + git push --force https://${{ secrets.HF_USERNAME }}:$HF_TOKEN@huggingface.co/spaces/${{ secrets.HF_USERNAME }}/${{ secrets.SPACE_NAME }} HEAD:main \ No newline at end of file