fix workspace volume
Some checks failed
Build Hugo Site / build (push) Failing after 23s

This commit is contained in:
John 2025-03-09 08:12:29 -05:00
parent 23567fb978
commit 997080a31d

View File

@ -18,25 +18,20 @@ jobs:
with: with:
hugo-version: 'latest' hugo-version: 'latest'
- name: Ensure Output Directory Exists
run: |
mkdir -p /data/hugo/public
chmod -R 777 /data/hugo/public
- name: Debug Working Directory - name: Debug Working Directory
run: | run: |
pwd pwd
ls -la ls -la
find . -name "hugo.toml" echo "Current directory structure:"
hugo config find . -type f
- name: Build Hugo Site - name: Build Hugo Site
working-directory: /workspace/john/hugo-blog
run: | run: |
hugo --minify -d /data/hugo/public --config hugo.toml # Build directly in the workspace, then copy to the mounted volume
hugo --minify
# Verify the build was successful # Copy the generated files to the mounted volume
if [ ! -d /data/hugo/public ]; then cp -r public/* /data/hugo/public/
echo "Hugo build failed - public directory not created"
exit 1 # Verify the copy was successful
fi ls -la /data/hugo/public/