Skip to content

Commit 9c1378e

Browse files
committed
chore(ci): fix hocon and redoc version
Signed-off-by: Swilder-M <[email protected]>
1 parent 5efed79 commit 9c1378e

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

.github/workflows/deploy_docs.yaml

+9-2
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,13 @@ jobs:
136136
137137
- name: setup hocon
138138
run: |
139+
version_number=$(echo "${VERSION}" | tr -d v | awk -F. '{ printf("%d%02d%02d", $1,$2,$3) }')
140+
if [ $version_number -lt 50300 ];
141+
then
142+
echo "Skip set hocon"
143+
exit 0
144+
fi
145+
139146
echo "HOCON=true" >> $GITHUB_ENV
140147
if [[ $DOCS_TYPE == "emqx" ]];
141148
then
@@ -165,7 +172,7 @@ jobs:
165172
pnpm build
166173
167174
- name: build ce redoc
168-
if: matrix.docs_type == 'emqx'
175+
if: matrix.docs_type == 'emqx' && !contains(fromJSON('["v1.", "v2.", "v3.", "v4."]'), matrix.version)
169176
run: |
170177
cd frontend
171178
yarn global add redoc-cli
@@ -182,7 +189,7 @@ jobs:
182189
done
183190
184191
- name: build ee redoc
185-
if: matrix.docs_type == 'enterprise'
192+
if: matrix.docs_type == 'enterprise' && !contains(fromJSON('["v1.", "v2.", "v3.", "v4."]'), matrix.version)
186193
run: |
187194
cd frontend
188195
yarn global add redoc-cli

preview.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ if [ "$PRODUCT" = "ce" ]; then
3434
-v "$THIS_DIR"/en_US:/app/docs/en/latest \
3535
-v "$THIS_DIR"/zh_CN:/app/docs/zh/latest \
3636
-v "$THIS_DIR"/swagger:/app/docs/.vitepress/public/api \
37-
-e DOCS_TYPE=broker \
37+
-e DOCS_TYPE=emqx \
3838
-e VERSION=latest \
39-
ghcr.io/emqx/emqx-io-docs-next:latest
39+
ghcr.io/emqx/docs-emqx-com-next:latest
4040
else
4141
python3 "$THIS_DIR/gen.py" ee > directory_ee.json
4242
docker run -p ${HOST_PORT}:8080 -it --name "$CONTAINER_NAME" \

0 commit comments

Comments
 (0)