From a000c2dd4da8e9bdee50774c2c418c5222b10fa6 Mon Sep 17 00:00:00 2001 From: Nestor Qin Date: Sat, 5 Oct 2024 00:45:33 -0400 Subject: [PATCH] action: update deploy destination --- .github/workflows/deploy.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 7915d2f..559e805 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -32,10 +32,12 @@ jobs: env: HF_TOKEN: ${{ secrets.HF_TOKEN }} run: | - cd dist - git init + git clone https://huggingface.co/spaces/mlc-ai/${{ vars.SPACE_NAME }} hf_space + cd hf_space + rm -rf ./* + cp -r ../dist/* . 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 and README" - 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 + git push origin \ No newline at end of file