Skip to content

Commit 1f7bd30

Browse files
committed
TCLOUD-4780: Create redirects in github action
1 parent 985696c commit 1f7bd30

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/preview_create.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,8 @@ jobs:
5555

5656
- name: Upload website preview to S3 # put in the docs subfolder as we rely on that path in redirects
5757
run: |
58-
aws s3 sync --delete ./build/site s3://tiny-cloud-antora-docs-preview/pr${PR_NUMBER}/docs
58+
aws s3 rm s3://tiny-cloud-antora-docs-preview/pr${PR_NUMBER}
59+
aws s3 sync ./build/site s3://tiny-cloud-antora-docs-preview/pr${PR_NUMBER}/docs
60+
61+
- name: Create redirects on S3
62+
run: node ./.github/workflows/scripts/generate_redirects.mjs tiny-cloud-antora-docs-preview pr${PR_NUMBER}

0 commit comments

Comments
 (0)