diff --git a/.gitea/workflows/deploy-docs.yaml b/.gitea/workflows/deploy-docs.yaml index a5c1137..cda363d 100644 --- a/.gitea/workflows/deploy-docs.yaml +++ b/.gitea/workflows/deploy-docs.yaml @@ -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/