Skip to content

Commit 259f6d1

Browse files
committed
Copy build artifacts to S3
Add toctree to allow navigation Resolves #5
1 parent 75dd18c commit 259f6d1

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

source/toctree.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
:orphan:
2+
3+
.. toctree::
4+
:caption: Contents:
5+
:maxdepth: 2
6+
:includehidden:
7+
8+
fiber
9+
replication
10+
relay
11+
qsync
12+
wal
13+
wal-fmt
14+
allocators

upload_output.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/usr/bin/env bash
2+
3+
4+
BRANCH=$BRANCH_NAME
5+
DOC_DEST="$S3_UPLOAD_PATH/internals/${BRANCH_NAME}"
6+
CHECK_KEY="doc-builds/internals/${BRANCH_NAME}/json/_build_ru/json/toctree.fjson"
7+
8+
aws s3api head-object --bucket ${S3_BUCKET} --key ${CHECK_KEY} --endpoint-url="$ENDPOINT_URL" || not_exist=true
9+
if [ $not_exist ]; then
10+
echo "toctree.json does not exist"
11+
else
12+
echo "found toctree.json, remove the branch from s3 location"
13+
aws s3 rm "$DOC_DEST"/json --endpoint-url="$ENDPOINT_URL" --recursive
14+
fi
15+
16+
aws s3 cp build/json "$DOC_DEST"/json --endpoint-url="$ENDPOINT_URL" --recursive --include "*" --exclude "*.jpg" --exclude "*.png" --exclude "*.svg"

0 commit comments

Comments
 (0)