mirror of
https://github.com/Instadapp/assets.git
synced 2024-07-29 22:27:41 +00:00
Updated gh action to only act on the directory
This commit is contained in:
parent
37fa68e39c
commit
37f73d03ad
10
.github/workflows/synchronize-cdn.yml
vendored
10
.github/workflows/synchronize-cdn.yml
vendored
|
@ -52,10 +52,14 @@ jobs:
|
|||
# remove `.github` and any other paths we do not want in the CDN
|
||||
rm -rf .github .git
|
||||
|
||||
# SYNC
|
||||
rclone sync -P . s3:$CDN_BUCKET/
|
||||
# Synchronize the `icons` directory
|
||||
# Note: This command should be added for any new directories in this repo
|
||||
# otherwise, they'll not be synced
|
||||
rclone sync icons s3:$CDN_BUCKET/icons
|
||||
|
||||
rclone config delete s3
|
||||
|
||||
# Wipe out DigitalOcean CDN cache
|
||||
curl -X DELETE -H "Content-Type: application/json" -H "Authorization: Bearer $DO_TOKEN" -d '{"files": ["*"]}' https://api.digitalocean.com/v2/cdn/endpoints/$CDN_ID/cache
|
||||
# Note: This command should be added for any new directories in this repo
|
||||
# otherwise, cache for those directories will not be cleared
|
||||
curl -X DELETE -H "Content-Type: application/json" -H "Authorization: Bearer $DO_TOKEN" -d '{"files": ["icons/*"]}' https://api.digitalocean.com/v2/cdn/endpoints/$CDN_ID/cache
|
||||
|
|
Loading…
Reference in New Issue
Block a user