File tree Expand file tree Collapse file tree 7 files changed +117
-5
lines changed
Expand file tree Collapse file tree 7 files changed +117
-5
lines changed Original file line number Diff line number Diff line change 2929 out_dir : ' ${{ env.DESTINATION-PATH }}'
3030 cdn_domain : ${{ env.CDN-URL }}
3131 versioning : false
32+
33+ - name : Install doctl
34+ uses : digitalocean/action-doctl@v2
35+ with :
36+ token : ${{ secrets.DO_PURGE_TOKEN }}
37+
38+ - name : Purge DigitalOcean cache
39+ run : |
40+ doctl compute cdn flush a94b5dfc-8dfe-4060-99ec-14526d813c22 --verbose --files ${{ env.DESTINATION-PATH }}/*
41+
42+ - name : Purge Cloudflare cache
43+ run : |
44+ curl -X POST "https://api.cloudflare.com/client/v4/zones/${{ secrets.CF_PURGE_CACHE_ZONEID_CL }}/purge_cache" \
45+ -H "Authorization: Bearer ${{ secrets.CF_PURGE_CACHE_TOKEN_CL }}" \
46+ -H "Content-Type: application/json" \
47+ --data "{ \"purge_everything\": true }"
Original file line number Diff line number Diff line change 2828 source : ' ${{ env.DESTINATION-PATH }}'
2929 out_dir : ' ${{ env.DESTINATION-PATH }}'
3030 cdn_domain : ${{ env.CDN-URL }}
31- versioning : false
31+ versioning : false
32+
33+ - name : Install doctl
34+ uses : digitalocean/action-doctl@v2
35+ with :
36+ token : ${{ secrets.DO_PURGE_TOKEN }}
37+
38+ - name : Purge DigitalOcean cache
39+ run : |
40+ doctl compute cdn flush a94b5dfc-8dfe-4060-99ec-14526d813c22 --verbose --files ${{ env.DESTINATION-PATH }}/*
41+
42+ - name : Purge Cloudflare cache
43+ run : |
44+ curl -X POST "https://api.cloudflare.com/client/v4/zones/${{ secrets.CF_PURGE_CACHE_ZONEID_CL }}/purge_cache" \
45+ -H "Authorization: Bearer ${{ secrets.CF_PURGE_CACHE_TOKEN_CL }}" \
46+ -H "Content-Type: application/json" \
47+ --data "{ \"purge_everything\": true }"
Original file line number Diff line number Diff line change 2828 source : ' ${{ env.DESTINATION-PATH }}'
2929 out_dir : ' ${{ env.DESTINATION-PATH }}'
3030 cdn_domain : ${{ env.CDN-URL }}
31- versioning : false
31+ versioning : false
32+
33+ - name : Install doctl
34+ uses : digitalocean/action-doctl@v2
35+ with :
36+ token : ${{ secrets.DO_PURGE_TOKEN }}
37+
38+ - name : Purge DigitalOcean cache
39+ run : |
40+ doctl compute cdn flush a94b5dfc-8dfe-4060-99ec-14526d813c22 --verbose --files ${{ env.DESTINATION-PATH }}/*
41+
42+ - name : Purge Cloudflare cache
43+ run : |
44+ curl -X POST "https://api.cloudflare.com/client/v4/zones/${{ secrets.CF_PURGE_CACHE_ZONEID_CL }}/purge_cache" \
45+ -H "Authorization: Bearer ${{ secrets.CF_PURGE_CACHE_TOKEN_CL }}" \
46+ -H "Content-Type: application/json" \
47+ --data "{ \"purge_everything\": true }"
Original file line number Diff line number Diff line change 2828 source : ' ${{ env.DESTINATION-PATH }}'
2929 out_dir : ' ${{ env.DESTINATION-PATH }}'
3030 cdn_domain : ${{ env.CDN-URL }}
31- versioning : false
31+ versioning : false
32+
33+ - name : Install doctl
34+ uses : digitalocean/action-doctl@v2
35+ with :
36+ token : ${{ secrets.DO_PURGE_TOKEN }}
37+
38+ - name : Purge DigitalOcean cache
39+ run : |
40+ doctl compute cdn flush a94b5dfc-8dfe-4060-99ec-14526d813c22 --verbose --files ${{ env.DESTINATION-PATH }}/*
41+
42+ - name : Purge Cloudflare cache
43+ run : |
44+ curl -X POST "https://api.cloudflare.com/client/v4/zones/${{ secrets.CF_PURGE_CACHE_ZONEID_CL }}/purge_cache" \
45+ -H "Authorization: Bearer ${{ secrets.CF_PURGE_CACHE_TOKEN_CL }}" \
46+ -H "Content-Type: application/json" \
47+ --data "{ \"purge_everything\": true }"
Original file line number Diff line number Diff line change 2828 source : ' ${{ env.DESTINATION-PATH }}'
2929 out_dir : ' ${{ env.DESTINATION-PATH }}'
3030 cdn_domain : ${{ env.CDN-URL }}
31- versioning : false
31+ versioning : false
32+
33+ - name : Install doctl
34+ uses : digitalocean/action-doctl@v2
35+ with :
36+ token : ${{ secrets.DO_PURGE_TOKEN }}
37+
38+ - name : Purge DigitalOcean cache
39+ run : |
40+ doctl compute cdn flush a94b5dfc-8dfe-4060-99ec-14526d813c22 --verbose --files ${{ env.DESTINATION-PATH }}/*
41+
42+ - name : Purge Cloudflare cache
43+ run : |
44+ curl -X POST "https://api.cloudflare.com/client/v4/zones/${{ secrets.CF_PURGE_CACHE_ZONEID_CL }}/purge_cache" \
45+ -H "Authorization: Bearer ${{ secrets.CF_PURGE_CACHE_TOKEN_CL }}" \
46+ -H "Content-Type: application/json" \
47+ --data "{ \"purge_everything\": true }"
Original file line number Diff line number Diff line change 2828 source : ' ${{ env.DESTINATION-PATH }}'
2929 out_dir : ' ${{ env.DESTINATION-PATH }}'
3030 cdn_domain : ${{ env.CDN-URL }}
31- versioning : false
31+ versioning : false
32+
33+ - name : Install doctl
34+ uses : digitalocean/action-doctl@v2
35+ with :
36+ token : ${{ secrets.DO_PURGE_TOKEN }}
37+
38+ - name : Purge DigitalOcean cache
39+ run : |
40+ doctl compute cdn flush a94b5dfc-8dfe-4060-99ec-14526d813c22 --verbose --files ${{ env.DESTINATION-PATH }}/*
41+
42+ - name : Purge Cloudflare cache
43+ run : |
44+ curl -X POST "https://api.cloudflare.com/client/v4/zones/${{ secrets.CF_PURGE_CACHE_ZONEID_CL }}/purge_cache" \
45+ -H "Authorization: Bearer ${{ secrets.CF_PURGE_CACHE_TOKEN_CL }}" \
46+ -H "Content-Type: application/json" \
47+ --data "{ \"purge_everything\": true }"
Original file line number Diff line number Diff line change 3333 out_dir : ' ${{ env.DESTINATION-PATH }}'
3434 cdn_domain : ${{ env.CDN-URL }}
3535 versioning : false
36+
37+ - name : Install doctl
38+ uses : digitalocean/action-doctl@v2
39+ with :
40+ token : ${{ secrets.DO_PURGE_TOKEN }}
41+
42+ - name : Purge DigitalOcean cache
43+ run : |
44+ doctl compute cdn flush a94b5dfc-8dfe-4060-99ec-14526d813c22 --verbose --files ${{ env.DESTINATION-PATH }}/*
45+
46+ - name : Purge Cloudflare cache
47+ run : |
48+ curl -X POST "https://api.cloudflare.com/client/v4/zones/${{ secrets.CF_PURGE_CACHE_ZONEID_CL }}/purge_cache" \
49+ -H "Authorization: Bearer ${{ secrets.CF_PURGE_CACHE_TOKEN_CL }}" \
50+ -H "Content-Type: application/json" \
51+ --data "{ \"purge_everything\": true }"
You can’t perform that action at this time.
0 commit comments