change workflow
Build and Deploy MkDocs / deploy-docs (push) Successful in 4m18s

This commit is contained in:
2026-10-11 11:02:15 +02:00
parent 863a1ef1ad
commit bab60e9455
+14 -11
View File
@@ -40,21 +40,24 @@ jobs:
- name: Deploy to Web Server Folder
run: |
echo user $USER, $(whoami)
echo ls site
ls -la site/
echo "=== CHECKING CURRENT DIRECTORY STRUCTURE ==="
pwd
# Ensure the mounted directory is recognized inside the container
echo "=== CHECKING MKDOCS OUTPUT ==="
# Double check if 'site/' actually has files
if [ -d "site" ]; then
ls -la site/
else
echo "ERROR: 'site/' directory does not exist!"
exit 1
fi
# Ensure target directory exists inside the container environment
mkdir -p /var/www/git-pages/test
echo ls var
ls -la /var/www/git-pages/test
# Clear the destination folder first to remove old deleted files
echo "=== COPYING FILES ==="
rm -rf /var/www/git-pages/test/*
# Copy everything from the built 'site' folder directly to your web root
cp -R site/* /var/www/git-pages/test/
echo ls var
echo "=== VERIFYING DESTINATION INSIDE CONTAINER ==="
ls -la /var/www/git-pages/test/