Skip to content

Commit dbddff1

Browse files
committed
ci: select the binary by name when extracting from wheels
_bin/ now also contains schema.json, so the extract step's find matched two files and the cp failed. Match cants/cants.exe by name instead.
1 parent fa3feee commit dbddff1

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,8 @@ jobs:
125125
plat="$(basename "$whl" .whl | sed 's/.*-py3-none-//')"
126126
tmp="$(mktemp -d)"
127127
python -m zipfile -e "$whl" "$tmp"
128-
bin="$(find "$tmp/codeanalyzer_typescript/_bin" -type f ! -name '.gitignore')"
128+
# _bin/ now also holds schema.json, so select the binary by name (cants / cants.exe).
129+
bin="$(find "$tmp/codeanalyzer_typescript/_bin" -type f -name 'cants*')"
129130
ext=""; [[ "$bin" == *.exe ]] && ext=".exe"
130131
cp "$bin" "../../release-bins/cants-${plat}${ext}"
131132
done

0 commit comments

Comments
 (0)