Skip to content

Commit 769d91b

Browse files
committed
actions: publish release docs to correct folder
We have been publishing docs to the wrong folter on AWS S3. We still had the official docs published to the correct place manually though, so all was good. This change will eliminate the manual step of publishing documentation and will put things where they belong. Signed-off-by: Anas Nashif <[email protected]>
1 parent c2b5e68 commit 769d91b

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/doc-publish.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ on:
99
- cron: '50 22 * * *'
1010
push:
1111
tags:
12-
- '*'
12+
# only publish v* tags, do not care about zephyr-v* which point to the
13+
# same commit
14+
- 'v*'
1315

1416
jobs:
1517
doc-publish:
@@ -100,13 +102,15 @@ jobs:
100102
aws s3 sync --quiet doc/_build/html s3://docs.zephyrproject.org/latest --delete
101103
echo "success sync of latest docs"
102104
else
103-
DOC_RELEASE=${RELEASE}.0
105+
# we want just the version, without the leading 'v'
106+
DOC_RELEASE=${RELEASE:1}
104107
echo "publish release docs: ${DOC_RELEASE}"
105108
aws s3 sync --quiet doc/_build/html s3://docs.zephyrproject.org/${DOC_RELEASE}
106109
echo "success sync of rel docs"
107110
fi
108111
if [ -d doc/_build/doxygen/html ]; then
109-
echo "publish doxygen"
110-
aws s3 sync --quiet doc/_build/doxygen/html s3://docs.zephyrproject.org/apidoc/${RELEASE} --delete
112+
API_RELEASE=${RELEASE:1}
113+
echo "publish doxygen to apidoc/${API_RELEASE}"
114+
aws s3 sync --quiet doc/_build/doxygen/html s3://docs.zephyrproject.org/apidoc/${API_RELEASE} --delete
111115
echo "success publish of doxygen"
112116
fi

0 commit comments

Comments
 (0)