File tree 1 file changed +4
-12
lines changed 1 file changed +4
-12
lines changed Original file line number Diff line number Diff line change 29
29
30
30
- name : Debug MkDocs Build
31
31
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
36
34
37
35
- name : Ensure Site Directory
38
36
run : mkdir -p ../site
49
47
50
48
- name : Replace site contents
51
49
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'."
54
52
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
61
53
62
54
- name : Commit changes
63
55
run : |
You can’t perform that action at this time.
0 commit comments