Skip to content

Commit

Permalink
优化部署工作流,移除冗余步骤以简化gh-pages分支的克隆过程
Browse files Browse the repository at this point in the history
  • Loading branch information
W1ndys committed Dec 31, 2024
1 parent 545bb23 commit 1aaa35f
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,17 +55,11 @@ jobs:
script: |
echo "进入 ECS_SITE 目录"
cd ${{ secrets.ECS_SITE }}
echo "删除旧的 ${{ secrets.GH_REPO }} 目录"
rm -rf ${{ secrets.GH_REPO }}
echo "克隆 gh-pages 分支"
git clone --depth 1 -b gh-pages [email protected]:${{ secrets.GH_USERNAME }}/${{ secrets.GH_REPO }}.git
echo "删除旧的 index 目录"
rm -rf index
echo "移动克隆的仓库到 index 目录"
mv ${{ secrets.GH_REPO }} index
cd index
echo "删除 .git 目录"
rm -rf .git
echo "更改文件权限"
chown -R 1000:1000 .
echo "脚本执行完毕"

0 comments on commit 1aaa35f

Please sign in to comment.