File tree 1 file changed +2
-1
lines changed
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -24,12 +24,13 @@ services:
24
24
- -c
25
25
- |
26
26
set -e
27
+ export PATCH_VERSION=$$(cat /main/+dj/version.m | grep 'v =' | sed 's/[^0-9]*/./g' | cut -c 2-6)
27
28
if echo "$${MODE}" | grep -i live &>/dev/null; then
28
29
mkdocs serve --config-file ./docs/mkdocs.yaml -a 0.0.0.0:80
29
30
elif echo "$${MODE}" | grep -iE "qa|build" &>/dev/null; then
30
31
git branch -D gh-pages || true
31
32
git fetch $${UPSTREAM_REPO} gh-pages:gh-pages || true
32
- mike deploy --config-file ./docs/mkdocs.yaml -u $$(grep -oE '\d+\.\d+' /main/$${PACKAGE}/version.py) latest
33
+ mike deploy --config-file ./docs/mkdocs.yaml -u $PATCH_VERSION latest
33
34
mike set-default --config-file ./docs/mkdocs.yaml latest
34
35
if echo "$${MODE}" | grep -i qa &>/dev/null; then
35
36
mike serve --config-file ./docs/mkdocs.yaml -a 0.0.0.0:80
You can’t perform that action at this time.
0 commit comments