Skip to content

Commit

Permalink
ci: update yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaviilee committed Nov 22, 2024
1 parent 20b5f39 commit caf7634
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions .github/workflows/upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,19 @@ jobs:
access-key-id: ${{ secrets.AccessKey_ID }}
access-key-secret: ${{ secrets.Access_Key_Secret }}
- run: |
- run: |
find . -type f \( \
-name "README.md" -o \
-name ".gitignore" -o \
-name "package.json" -o \
-name "theme.json" -o \
-name "index.js" \
\) -prune -o \
-type d \( \
-name ".git" -o \
-name ".github" -o \
-name "utils" -o \
-name "ossutil_output" \
\) -prune -o \
-type f -print0 | \
ossutil cp -rf -i /dev/stdin oss://jx3box/logo/
mkdir -p temp_sync
cp -r . temp_sync/
# 删除不需要的文件和文件夹
rm -rf temp_sync/.git \temp_sync/.github \
temp_sync/utils \
temp_sync/ossutil_output \
temp_sync/README.md \
temp_sync/.gitignore \
temp_sync/package.json \
temp_sync/theme.json \
temp_sync/index.js
ossutil sync temp_sync/ oss://jx3box/logo/
# 清理临时目录
rm -rf temp_sync

0 comments on commit caf7634

Please sign in to comment.