Skip to content

Commit fd415c7

Browse files
committed
Add update-link-index action step
1 parent 00e0148 commit fd415c7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/preview-build.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,13 +138,18 @@ jobs:
138138
if: steps.deployment.outputs.result
139139

140140
- name: Upload to S3
141+
id: s3-upload
141142
if: steps.deployment.outputs.result
142143
run: |
143144
aws s3 sync .artifacts/docs/html "s3://elastic-docs-v3-website-preview${PATH_PREFIX}" --delete
144145
aws cloudfront create-invalidation \
145146
--distribution-id EKT7LT5PM8RKS \
146147
--paths "${PATH_PREFIX}" "${PATH_PREFIX}/*"
147148
149+
- name: Update Link Index
150+
if: steps.s3-upload.outcome == 'success'
151+
uses: elastic/docs-builder/actions/update-link-index@main
152+
148153
- name: Update deployment status
149154
uses: actions/github-script@v7
150155
if: always() && steps.deployment.outputs.result

0 commit comments

Comments
 (0)