Add post about automatically purging the cache with Bunny, and add the other purge calls to the action
Build and copy to prod / build-and-copy (push) Successful in 2m5s

This commit is contained in:
Lewis Dale committed 2024-04-26 12:07:46 +01:00
1 parent da167b3fba
commit c3c1251dfd
2 files changed
+73 -12

No files matched your search

+10 -12
View File
@@ -40,15 +40,13 @@ jobs:
curl --request POST \
--url 'https://api.bunny.net/purge?url=https%3A%2F%2Flewisdale.dev%2F%2A.xml&async=false' \
--header 'AccessKey: ${{ secrets.BUNNY_ACCESS_KEY }}'
# - name: Purge JSON files from cache
# run:
# - |
# curl --request POST
# --url 'https://api.bunny.net/purge?url=https%3A%2F%2Flewisdale.dev%2F%2A.json&async=false'
# --header 'AccessKey: ${{ secrets.BUNNY_ACCESS_KEY }}'
# - name: Purge CSS files from cache
# run:
# - |
# curl --request POST
# --url 'https://api.bunny.net/purge?url=https%3A%2F%2Flewisdale.dev%2F%2A.css&async=false'
# --header 'AccessKey: ${{ secrets.BUNNY_ACCESS_KEY }}'
- name: Purge JSON files from cache
run: |
curl --request POST \
--url 'https://api.bunny.net/purge?url=https%3A%2F%2Flewisdale.dev%2F%2A.json&async=false' \
--header 'AccessKey: ${{ secrets.BUNNY_ACCESS_KEY }}'
- name: Purge CSS files from cache
run: |
curl --request POST \
--url 'https://api.bunny.net/purge?url=https%3A%2F%2Flewisdale.dev%2F%2A.css&async=false' \
--header 'AccessKey: ${{ secrets.BUNNY_ACCESS_KEY }}'