Skip to content

Commit

Permalink
action: update deploy destination
Browse files Browse the repository at this point in the history
  • Loading branch information
Neet-Nestor committed Oct 5, 2024
1 parent dc4f196 commit 739a1ed
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,12 @@ jobs:
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
run: |
cd dist
git init
git clone https://${{ secrets.HF_USERNAME }}:[email protected]/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 }}:[email protected]/spaces/${{ secrets.HF_USERNAME }}/${{ secrets.SPACE_NAME }} HEAD:main
git push origin

0 comments on commit 739a1ed

Please sign in to comment.