Skip to content

Commit 3b1ac1b

Browse files
committed
upd
1 parent e189fd0 commit 3b1ac1b

File tree

1 file changed

+31
-1
lines changed

1 file changed

+31
-1
lines changed

.github/workflows/deploy.yml

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,26 +25,56 @@ jobs:
2525
uses: actions/setup-node@v4
2626
with:
2727
node-version: 18
28+
# Remove cache configuration to avoid errors
29+
# cache: npm
30+
# cache-dependency-path: docs/package-lock.json
31+
32+
- name: Debug environment
33+
run: |
34+
pwd
35+
ls -la
36+
echo "Current directory structure:"
37+
find . -type d -maxdepth 3 | sort
2838
2939
- name: Install dependencies
3040
working-directory: ./docs
3141
run: |
42+
pwd
43+
ls -la
3244
if [ ! -f "package-lock.json" ]; then
45+
echo "No package-lock.json found, using npm install"
3346
npm install
3447
else
48+
echo "Using npm ci with existing package-lock.json"
3549
npm ci
3650
fi
3751
3852
- name: Build website
3953
working-directory: ./docs
40-
run: npm run build
54+
run: |
55+
echo "Building Docusaurus site"
56+
npm run build
57+
echo "Build completed. Checking build directory:"
58+
ls -la build/
4159
4260
- name: Add CNAME file if exists
4361
working-directory: ./docs
4462
run: |
4563
if [ -f "CNAME" ]; then
64+
echo "Copying CNAME file to build directory"
4665
cp CNAME build/
66+
echo "CNAME file contents:"
67+
cat build/CNAME
68+
else
69+
echo "No CNAME file found in docs directory"
4770
fi
71+
72+
- name: Verify build path
73+
run: |
74+
echo "Verifying build path from repo root:"
75+
ls -la docs/build
76+
echo "Total files in build directory:"
77+
find docs/build -type f | wc -l
4878
4979
- name: Deploy to GitHub Pages
5080
uses: JamesIves/github-pages-deploy-action@v4

0 commit comments

Comments
 (0)