mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2026-02-23 13:02:14 +01:00
fix
This commit is contained in:
15
.github/workflows/docs-release.yml
vendored
15
.github/workflows/docs-release.yml
vendored
@@ -25,11 +25,20 @@ jobs:
|
||||
- run: pip install zensical
|
||||
- run: cp HMI/README.md docs/hmi-serial-protocol.md
|
||||
- run: zensical build --config-file mkdocs.yml
|
||||
- run: mv site _site_main
|
||||
- run: zensical build --config-file docs-standalone/mkdocs.yml
|
||||
- run: mkdir -p _site/standalone _site/stable
|
||||
- run: cp -a site/. _site/
|
||||
- run: cp -a site/. _site/stable/
|
||||
- run: cp -a site-standalone/. _site/standalone/
|
||||
- run: cp -a _site_main/. _site/
|
||||
- run: cp -a _site_main/. _site/stable/
|
||||
- run: |
|
||||
if [ -d site-standalone ]; then
|
||||
cp -a site-standalone/. _site/standalone/
|
||||
elif [ -d site ]; then
|
||||
cp -a site/. _site/standalone/
|
||||
else
|
||||
echo "Standalone docs output not found (expected 'site-standalone' or 'site')."
|
||||
exit 1
|
||||
fi
|
||||
- uses: actions/upload-pages-artifact@v4
|
||||
with:
|
||||
path: _site
|
||||
|
||||
Reference in New Issue
Block a user