File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -8,15 +8,17 @@ if [ "$#" -ne 3 ]; then
8
8
exit 1
9
9
fi
10
10
11
+ DESTINATION_FOLDER=" docs-preview"
12
+
11
13
BUCKET_NAME=" $1 "
12
14
OLD_PATH=" $2 " # must include leading and trailing slash e.g. /about-circleci/
13
- NEW_PATH=" $3 " # full target path e.g. /docs-preview/guide/about-circleci/index.html
15
+ NEW_PATH=" / ${DESTINATION_FOLDER} $3 " # full target path e.g. /docs-preview/guide/about-circleci/index.html
14
16
15
17
echo " [INFO] Deploying redirect to bucket: s3://$BUCKET_NAME "
16
18
echo " [INFO] Redirect: $OLD_PATH -> $NEW_PATH "
17
19
18
20
# Convert old path to S3 key (no leading slash before key!)
19
- S3_KEY=" docs-preview ${OLD_PATH} index.html"
21
+ S3_KEY=" ${DESTINATION_FOLDER} ${OLD_PATH} index.html"
20
22
21
23
echo " [INFO] Creating S3 object: $S3_KEY "
22
24
Original file line number Diff line number Diff line change 3
3
# Total redirects: 502
4
4
5
5
- old : /about-circleci/
6
- new : /guides/about-circleci/about-circleci/ index.html
6
+ new : /guides/about-circleci/index.html
7
7
8
8
- old : /add-ssh-key/
9
- new : /guides/integration/add-ssh-key/index .html
9
+ new : /guides/integration/add-ssh-key.html
10
10
11
11
- old : /android-images-support-policy/
12
12
new : /guides/execution-managed/android-images-support-policy/index.html
You can’t perform that action at this time.
0 commit comments