This commit is contained in:
parent
6fb9b78484
commit
4bba2b8131
@ -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/
|
||||||
Loading…
x
Reference in New Issue
Block a user