Updating the test deploy workflow to include build status.

Signed-off-by: Sunil Singh <sunil.singh@suse.com>
This commit is contained in:
Sunil Singh 2025-10-01 12:40:29 -07:00
parent 72d678cc85
commit 9d8be5520f
No known key found for this signature in database
GPG Key ID: B63745F5C803DA80
1 changed files with 13 additions and 1 deletions

View File

@ -20,7 +20,19 @@ jobs:
- name: Install Antora and dependencies
run: make environment
- name: Generate Site
run: make local-product
run: |
mkdir -p tmp
bin/switch-prod-comm product
npx antora --stacktrace \
--log-format=pretty \
--log-level=info \
--log-failure-level=warn \
turtles-local-product-playbook.yml 2>&1 | tee tmp/local-product-build.log 2>&1
BUILD_STATUS=${PIPESTATUS[0]}
if grep "INFO (asciidoctor)" tmp/local-product-build.log; then
BUILD_STATUS=1
fi
echo "BUILD_STATUS=$BUILD_STATUS" >> $GITHUB_ENV
- name: Check for build errors
run: |
echo ${{ env.BUILD_STATUS }}