Skip to content

Commit 0e08cac

Browse files
Dale KunceDale Kunce
authored andcommitted
Add debugging to GitHub Actions workflow for CSS build issue
- Add debug steps before and after build to check .tmp and _site directories - Look for main.css file location during build process - Investigate why CSS builds locally but not on GitHub Actions
1 parent 77b8a62 commit 0e08cac

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,36 @@ jobs:
3737
- name: Lint JavaScript
3838
run: npm run lint
3939

40+
- name: Debug before build
41+
run: |
42+
echo "=== Before build ==="
43+
ls -la
44+
echo "=== Checking for .tmp directory ==="
45+
ls -la .tmp/ || echo "No .tmp directory found"
46+
4047
- name: Build site
4148
run: npm run build
4249
env:
4350
JEKYLL_ENV: production
4451

52+
- name: Debug after build
53+
run: |
54+
echo "=== After build ==="
55+
echo "=== Checking .tmp directory ==="
56+
ls -la .tmp/ || echo "No .tmp directory found"
57+
echo "=== Checking .tmp/assets ==="
58+
ls -la .tmp/assets/ || echo "No .tmp/assets directory found"
59+
echo "=== Checking .tmp/assets/styles ==="
60+
ls -la .tmp/assets/styles/ || echo "No .tmp/assets/styles directory found"
61+
echo "=== Checking _site directory ==="
62+
ls -la _site/ || echo "No _site directory found"
63+
echo "=== Checking _site/assets ==="
64+
ls -la _site/assets/ || echo "No _site/assets directory found"
65+
echo "=== Checking _site/assets/styles ==="
66+
ls -la _site/assets/styles/ || echo "No _site/assets/styles directory found"
67+
echo "=== Looking for main.css anywhere in _site ==="
68+
find _site -name "main.css" -type f || echo "No main.css found in _site"
69+
4570
- name: Upload build artifacts
4671
uses: actions/upload-artifact@v4
4772
with:

0 commit comments

Comments
 (0)