Skip to content

Commit 66bd6d8

Browse files
authored
ci: update media upload workflow to use Tencent Cloud and new purge command (#22592)
1 parent 0b63fba commit 66bd6d8

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/media.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Upload media files to Qiniu when they change
1+
name: Upload media files to Tencent Cloud when they change
22
on:
33
push:
44
branches:
@@ -73,4 +73,5 @@ jobs:
7373
run: pipx install tccli
7474

7575
- name: Purge production CDN cache
76-
run: tccli cdn PurgePathCache --Paths '["https://docs-download.pingcap.com/media/images/docs/"]' --FlushType delete
76+
run: |
77+
tccli teo CreatePurgeTask --cli-unfold-argument --ZoneId ${{ secrets.TENCENTCLOUD_EO_DOCS_ZONEID }} --Type purge_prefix --Method invalidate --Targets 'https://docs-download.pingcap.com/media/images/docs/'

0 commit comments

Comments
 (0)