diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 7a69d1d..6452899 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -32,6 +32,7 @@ jobs: env: HF_TOKEN: ${{ secrets.HF_TOKEN }} run: | + rm -rf hf_space git clone https://${{ secrets.HF_USERNAME }}:$HF_TOKEN@huggingface.co/spaces/mlc-ai/${{ vars.SPACE_NAME }} hf_space cd hf_space rm -rf ./* @@ -40,4 +41,4 @@ jobs: git config user.name "github-actions[bot]" git add . git commit -m "Update build artifacts and README" - git push origin \ No newline at end of file + git push -f origin \ No newline at end of file