-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
0 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 "脚本执行完毕" |