mirror of
https://github.com/SouthFox-D/SouthFox-D.github.io.git
synced 2024-11-29 01:55:19 +01:00
posts: update post
This commit is contained in:
parent
8785b28af6
commit
8852491b37
1 changed files with 2 additions and 2 deletions
|
@ -223,10 +223,10 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
rm -rf .git #删除 Hexo 的 .git 文件夹防止后续冲突
|
rm -rf .git #删除 Hexo 的 .git 文件夹防止后续冲突
|
||||||
git clone https://github.com/SouthFox-D/blog_img.git blog_img #备份仓库
|
git clone https://github.com/SouthFox-D/blog_img.git blog_img #备份仓库
|
||||||
cp -frp newimg/* blog_img/ #合并文件夹
|
cp -f newimg/* blog_img/ #合并文件夹
|
||||||
cd blog_img
|
cd blog_img
|
||||||
git add .
|
git add .
|
||||||
git diff --exit-code || git commit -am "Auto backup" #防止报错
|
git commit -am "Auto backup" || echo "Nothing to push" #防止报错
|
||||||
git push --force https://$DEPLOY_KEY@github.com/SouthFox-D/blog_img.git #根据实际情况而定
|
git push --force https://$DEPLOY_KEY@github.com/SouthFox-D/blog_img.git #根据实际情况而定
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue