taiwangoldcard / website

Taiwan Gold Card Community website
https://taiwangoldcard.com
Other
43 stars 18 forks source link

Purge Cloudflare cache after new deploy #226

Closed ruridge closed 2 years ago

ruridge commented 2 years ago

Addresses: #223

This PR sets up purging the Cloudflare cache as the last step in the GutHub deploy action.

Dependency: Someone with admin access to Cloudflare and this repository must create an API token with cache purge permissions in Cloudflare, then add that token and the Cloudflare zone as repository secrets.

Recommendations I suggest creating a Cloudflare API token with the minimum required permissions as shown here: Permissions: Zone => Cache Purge => Purge Zone Resources: Include => Specific zone => [taiwangoldcard.com]

Screenshot 2022-03-03 at 14 47 06
erickhun commented 2 years ago

Love it @ruridge ! Added the 2 secrets in the repo, let's see if that works

erickhun commented 2 years ago

Logs tells me it worked! nice @ruridge https://github.com/taiwangoldcard/website/runs/5404442427?check_suite_focus=true Screen Shot 2022-03-03 at 5 06 46 PM