Fix workflow for non-main builds & remove old GitLab references #1
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue