Fix workflow for non-main builds & remove old GitLab references #1

Merged
lordwektabyte merged 2 commits from develop into main 2023-12-31 16:56:31 +01:00
Showing only changes of commit 67cf06909d - Show all commits

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 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