remove sudo
Some checks failed
Build Hugo Site / build (push) Failing after 7s

This commit is contained in:
John 2025-03-09 08:26:04 -05:00
parent 6fb9b78484
commit 4bba2b8131

View File

@ -34,8 +34,8 @@ jobs:
- name: Build Hugo Site - name: Build Hugo Site
run: | run: |
# Create the target directory if it doesn't exist # Create the target directory if it doesn't exist
sudo mkdir -p /data/hugo/public mkdir -p /data/hugo/public
sudo chown -R root:root /data/hugo chown -R root:root /data/hugo
# Build directly in the workspace # Build directly in the workspace
hugo --minify --debug hugo --minify --debug
@ -44,8 +44,8 @@ jobs:
ls -la public/ ls -la public/
echo "Copying files to mounted volume..." echo "Copying files to mounted volume..."
sudo rm -rf /data/hugo/public/* # Clean target directory first rm -rf /data/hugo/public/* # Clean target directory first
sudo cp -rv public/* /data/hugo/public/ cp -rv public/* /data/hugo/public/
echo "Final contents of mounted volume:" echo "Final contents of mounted volume:"
ls -la /data/hugo/public/ ls -la /data/hugo/public/