From 89c48246fd1ef7d6ddcfa7a0b60ee511e86afe30 Mon Sep 17 00:00:00 2001 From: Alexandre Pires Date: Sun, 27 Apr 2025 14:09:06 +0200 Subject: [PATCH] fix: Update deployment workflow to use correct hugo_build script and improve logging --- .github/workflows/deploy-websites.yaml | 3 ++- bin/hugo_build | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy-websites.yaml b/.github/workflows/deploy-websites.yaml index c1b3644..9166f59 100644 --- a/.github/workflows/deploy-websites.yaml +++ b/.github/workflows/deploy-websites.yaml @@ -6,6 +6,7 @@ on: - main paths: - 'ansible/playbook_websites.yml' + - 'bin/hugo_build' - 'websites/**' jobs: @@ -39,7 +40,7 @@ jobs: trusted-hosts: ${{ secrets.TRUSTED_HOSTS }} - name: Run hugo_build command - run: bin/hugo_build.sh + run: bin/hugo_build - name: Run the playbook to deploy websites env: diff --git a/bin/hugo_build b/bin/hugo_build index 27c45c1..0edd4cb 100755 --- a/bin/hugo_build +++ b/bin/hugo_build @@ -29,6 +29,6 @@ for dir in $(find "$GITHUB_WORKSPACE/websites" -maxdepth 1 -type d | grep -vE '^ fi echo "Hugo site built successfully in $dir" else - echo "$dir is not a directory" + echo "$dir is not a directory, skipping..." fi done \ No newline at end of file