Skip to content

Commit

Permalink
ci fix: pack docks
Browse files Browse the repository at this point in the history
  • Loading branch information
lilith committed Jan 22, 2025
1 parent c0b82ae commit f2f016a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ci/pack_artifacts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,8 @@ mkdir -p ./artifacts/staging/headers # Explicitly create headers directory
if [ -d "./${TARGET_DIR}doc" ]; then
(
cd "./${TARGET_DIR}doc"
if [ "$(ls -A)" ]; then # Only create archive if directory is not empty
tar czf "../docs.${EXTENSION}" ./*
mv "../docs.${EXTENSION}" ./artifacts/staging/
if [ [ -A ] ]; then # Only create archive if directory is not empty
tar czf "../../artifacts/staging/docs.${EXTENSION}" ./*
else
echo "Documentation directory exists but is empty - skipping"
fi
Expand Down

0 comments on commit f2f016a

Please sign in to comment.