Skip to content

Commit

Permalink
update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
zzzhizhia committed Jan 5, 2025
1 parent 5709a1f commit 6049db5
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/deploy-public.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,18 @@ jobs:
git checkout public --
git reset --soft origin/public
rm -rf ./*
# 确保 public 目录存在
if [ ! -d "public" ]; then
echo "Error: public directory not found"
echo "Current directory contents:"
ls -la
exit 1
fi
# 复制文件
cp -r public/* .
git add .
if git diff --staged --quiet; then
Expand Down

0 comments on commit 6049db5

Please sign in to comment.