Skip to content

Commit e9e94e8

Browse files
requirements change 20
1 parent ada1b60 commit e9e94e8

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

.github/workflows/publish.yml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,8 @@ jobs:
2929

3030
- name: Debug MkDocs Build
3131
run: |
32-
echo "Listing contents of the current directory before 'mkdocs build':"
33-
ls -la
34-
echo "Listing contents of 'site' directory after 'mkdocs build':"
35-
ls -la site # This should show the contents of the 'site' directory
32+
echo "Listing contents of '../site':"
33+
ls -la ../site
3634
3735
- name: Ensure Site Directory
3836
run: mkdir -p ../site
@@ -49,15 +47,9 @@ jobs:
4947
5048
- name: Replace site contents
5149
run: |
52-
# Safely remove files except .git and other essential files
53-
find . -mindepth 1 ! -name '.git' ! -name '.gitignore' -exec rm -rf {} +
50+
rm -rf *
51+
cp -r ../site/* ./ || echo "No files to copy from '../site'."
5452
echo "google-site-verification: googlee5febdfb3cd460f8.html" > googlee5febdfb3cd460f8.html
55-
# Ensure site directory exists and copy its contents
56-
if [ -d site ]; then
57-
cp -r site/* ./
58-
else
59-
echo "Build directory 'site' does not exist or is empty."
60-
fi
6153
6254
- name: Commit changes
6355
run: |

0 commit comments

Comments
 (0)