fix: Update deployment workflow to use correct hugo_build script and improve logging

This commit is contained in:
2025-04-27 14:09:06 +02:00
parent 4e5346e2e0
commit 89c48246fd
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -6,6 +6,7 @@ on:
- main - main
paths: paths:
- 'ansible/playbook_websites.yml' - 'ansible/playbook_websites.yml'
- 'bin/hugo_build'
- 'websites/**' - 'websites/**'
jobs: jobs:
@@ -39,7 +40,7 @@ jobs:
trusted-hosts: ${{ secrets.TRUSTED_HOSTS }} trusted-hosts: ${{ secrets.TRUSTED_HOSTS }}
- name: Run hugo_build command - name: Run hugo_build command
run: bin/hugo_build.sh run: bin/hugo_build
- name: Run the playbook to deploy websites - name: Run the playbook to deploy websites
env: env:
+1 -1
View File
@@ -29,6 +29,6 @@ for dir in $(find "$GITHUB_WORKSPACE/websites" -maxdepth 1 -type d | grep -vE '^
fi fi
echo "Hugo site built successfully in $dir" echo "Hugo site built successfully in $dir"
else else
echo "$dir is not a directory" echo "$dir is not a directory, skipping..."
fi fi
done done