Skip to content

Commit 739a1ed

Browse files
committed
action: update deploy destination
1 parent dc4f196 commit 739a1ed

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/deploy.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,12 @@ jobs:
3232
env:
3333
HF_TOKEN: ${{ secrets.HF_TOKEN }}
3434
run: |
35-
cd dist
36-
git init
35+
git clone https://${{ secrets.HF_USERNAME }}:[email protected]/spaces/mlc-ai/${{ vars.SPACE_NAME }} hf_space
36+
cd hf_space
37+
rm -rf ./*
38+
cp -r ../dist/* .
3739
git config user.email "github-actions[bot]@users.noreply.github.com"
3840
git config user.name "github-actions[bot]"
3941
git add .
4042
git commit -m "Update build artifacts and README"
41-
git push --force https://${{ secrets.HF_USERNAME }}:[email protected]/spaces/${{ secrets.HF_USERNAME }}/${{ secrets.SPACE_NAME }} HEAD:main
43+
git push origin

0 commit comments

Comments
 (0)