Skip to content

Commit

Permalink
CI test
Browse files Browse the repository at this point in the history
  • Loading branch information
zichongxu-ustc committed Sep 28, 2024
1 parent 1b7e69d commit e4c4a63
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,19 @@ jobs:
- name: Deploy to GitHub Pages
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "[email protected]"
git config --global user.email "[email protected]"
git checkout gh-pages || git checkout --orphan gh-pages
rm -rf *
cp -R public/* .
if [ -d public ]; then
cp -R public/* .
else
echo "public directory does not exist"
exit 1
fi
git add .
git commit -m "Deploy to GitHub Pages" || echo "No changes to commit"
git push origin gh-pages
# - name: Clean public folder
# run: rm -rf ./public/* # 删除 public 文件夹中的所有内容

Expand Down

0 comments on commit e4c4a63

Please sign in to comment.