Update aliyun-backup.yml

This commit is contained in:
Vaica authored and GitHub committed 2024-10-05 17:04:12 +08:00
1 parent c06f7a8826
commit 1b8cd04b18
1 file changed
+3 -3
+3 -3
View File
@@ -1,4 +1,4 @@
name: 备份博客文件至阿里云oss
name: 发布博客
on:
push:
@@ -28,5 +28,5 @@ jobs:
- name: 增量上传资源(排除 public 文件夹)
run: |
# 使用 ossutil sync 进行增量同步,并排除 public 文件夹
ossutil sync . oss://${{ secrets.OSS_BUCKET }} --exclude "public/*" --delete
# 查找所有文件,排除 public 文件夹
find . -path ./public -prune -o -type f -print | xargs -I {} ossutil cp {} oss://${{ secrets.OSS_BUCKET }}/{} --update