Skip to content

Commit e0b420a

Browse files
committed
ci: Clean documentation CDN cache after new documentation deloyment
1 parent 4d28474 commit e0b420a

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/sphinx.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,17 @@ jobs:
131131
BUCKET: ${{ vars.DOCUMENTATION_BUCKET }}
132132
SOURCE: html/
133133
DESTINATION: ${{ needs.sphinx-version.outputs.SPHINX_VERSION }}/
134+
- shell: bash
135+
run: |
136+
curl -X POST \
137+
-H "X-Auth-Token: ${TOKEN}" \
138+
-H "Content-Type: application/json" \
139+
-d "{\"pipeline_id\":\"${PIPELINE_ID}\",\"assets\":[\"${ASSET}\"]}" \
140+
"https://api.scaleway.com/edge-services/v1alpha1/purge-requests"
141+
env:
142+
TOKEN: ${{ secrets.SCW_PROJECT_ID }}
143+
PIPELINE_ID: ${{ vars.DOCUMENTATION_EDGE_SERVICES_PIPELINE_ID }}
144+
ASSET: ${{ needs.sphinx-version.outputs.SPHINX_VERSION }}/
134145

135146
sphinx-deploy-root-files:
136147
if: ${{ github.event_name == 'release' }}

0 commit comments

Comments
 (0)