Skip to content

Commit ec32825

Browse files
authored
ci: fix cloudflare r2 upload
1 parent fd0c182 commit ec32825

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/auto_release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,10 @@ jobs:
4848
EOF
4949
5050
echo "Uploading dist.zip to R2 bucket: $R2_BUCKET_NAME/$R2_OBJECT_NAME"
51-
rclone copy dashboard/dist.zip r2:$R2_BUCKET_NAME/$R2_OBJECT_NAME --progress
52-
rclone copy dashboard/dist.zip r2:$R2_BUCKET_NAME/astrbot-webui-${VERSION_TAG}.zip --progress
51+
mv dashboard/dist.zip dashboard/$R2_OBJECT_NAME
52+
rclone copy dashboard/$R2_OBJECT_NAME r2:$R2_BUCKET_NAME --progress
53+
mv dashboard/$R2_OBJECT_NAME dashboard/astrbot-webui-${VERSION_TAG}.zip
54+
rclone copy dashboard/astrbot-webui-${VERSION_TAG}.zip r2:$R2_BUCKET_NAME --progress
5355
5456
- name: Fetch Changelog
5557
run: |

0 commit comments

Comments
 (0)