Skip to content

Commit c2408b5

Browse files
committed
Refine artifact upload and archive detection in release.yml
Explicitly upload only .zip and .tar.gz files as artifacts. Replace shell globbing with find for more robust archive detection. Improve error diagnostics by listing files with find instead of ls. #10
1 parent ae53f31 commit c2408b5

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

‎.github/workflows/release.yml‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,9 @@ jobs:
9191
uses: actions/upload-artifact@v4
9292
with:
9393
name: vectractl-${{ matrix.title }}-${{ matrix.os_arch }}
94-
path: "${{ github.workspace }}/dist"
94+
path: |
95+
${{ github.workspace }}/dist/*.zip
96+
${{ github.workspace }}/dist/*.tar.gz
9597
9698
release:
9799
runs-on: ubuntu-latest
@@ -125,12 +127,11 @@ jobs:
125127
set -euo pipefail
126128
cd "${{ env.ARTIFACT_DIR }}"
127129
128-
shopt -s nullglob
129-
files=( *.zip *.tar.gz )
130+
mapfile -t files < <(find . -type f \( -name '*.zip' -o -name '*.tar.gz' \) | sort)
130131
131132
if [ ${#files[@]} -eq 0 ]; then
132133
echo "No release archives were downloaded into ${PWD}"
133-
ls -la
134+
find . -maxdepth 3 -type f | sort || true
134135
exit 1
135136
fi
136137

0 commit comments

Comments
 (0)