Restore mkdocs config for not main build
/ build (push) Successful in 34s
Details
/ build (push) Successful in 34s
Details
This commit is contained in:
parent
0c2dada64b
commit
67cf06909d
|
@ -29,6 +29,10 @@ jobs:
|
||||||
sed -i "0,/^\([[:space:]]*primary: *\).*/s//\1$DRAFT_PRIMARY_COLOR/;0,/\([[:space:]]*accent: *\).*/s//\1$DRAFT_ACCENT_COLOR/;" mkdocs.yml
|
sed -i "0,/^\([[:space:]]*primary: *\).*/s//\1$DRAFT_PRIMARY_COLOR/;0,/\([[:space:]]*accent: *\).*/s//\1$DRAFT_ACCENT_COLOR/;" mkdocs.yml
|
||||||
fi
|
fi
|
||||||
- run: mkdocs build --verbose --site-dir public $BUILD_STRICT
|
- run: mkdocs build --verbose --site-dir public $BUILD_STRICT
|
||||||
|
- run: |
|
||||||
|
if [ "$PUBLISH_BRANCH" != "pages" ]; then
|
||||||
|
git restore mkdocs.yml
|
||||||
|
fi
|
||||||
- run: cp .domains public/.domains
|
- run: cp .domains public/.domains
|
||||||
- run: git switch --orphan $PUBLISH_BRANCH
|
- run: git switch --orphan $PUBLISH_BRANCH
|
||||||
- run: git add public
|
- run: git add public
|
||||||
|
|
Loading…
Reference in New Issue