Add Error Handling for Missing lib Directory in CI (publish) Workflow (#393)

* add 'set -e' to libdoc.sh for better error handling
* enhance publish.yml workflow with 'set -e' for error handling in CI script
* add 'set -x' to libdoc.sh for command tracing
This commit is contained in:
Julio C. Estrada
2025-01-15 13:00:33 -05:00
committed by GitHub
parent 24e584eacf
commit 56eaba484f
2 changed files with 5 additions and 0 deletions

View File

@@ -135,6 +135,7 @@ jobs:
if: steps.build.outputs.build-libs == 'true'
shell: bash
run: |
set -e
set -x
BOOST_SRC_DIR="${{ steps.boost-clone.outputs.boost-dir }}"
export BOOST_SRC_DIR
@@ -145,6 +146,7 @@ jobs:
shell: bash
working-directory: build
run: |
set -e
set -x
find "lib" -mindepth 1 -maxdepth 1 -type d -exec rm -r {} +
# find "cpp-reference-extension" -mindepth 1 -maxdepth 1 -type d -exec rm -r {} +

View File

@@ -15,6 +15,9 @@
# User's Guide.
#
set -x
set -e
if [ $# -eq 0 ]; then
echo "Usage: $0 { branch | version | 'release' | 'all' }..."
echo