Restore mkdocs config for not main build
/ build (push) Successful in 34s Details

This commit is contained in:
Guillem 2023-12-31 16:41:52 +01:00
parent 0c2dada64b
commit 67cf06909d
Signed by: lordwektabyte
GPG Key ID: 6F6C296B2D4475DF
1 changed files with 4 additions and 0 deletions

View File

@ -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
fi
- 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: git switch --orphan $PUBLISH_BRANCH
- run: git add public