Skip to content

Commit f9ea7aa

Browse files
Increased version number to 1.0.2
1 parent 19f3547 commit f9ea7aa

File tree

2 files changed

+19
-14
lines changed

2 files changed

+19
-14
lines changed

.github/workflows/publish.yml

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -34,37 +34,42 @@ jobs:
3434
uses: actions/download-artifact@v4
3535
with:
3636
path: artifacts/
37-
merge-multiple: true
3837

3938
- name: Merge wheels
4039
run: |
41-
set -euo pipefail
42-
43-
# find unique versions in names like wheels___1.2.3___manylinux2014_x86_64.zip
44-
versions=$(ls wheels___*___*.zip 2>/dev/null \
45-
| sed -E 's/wheels___([^_]+)___.*\.zip/\1/' \
46-
| sort -u)
40+
# find unique versions
41+
versions=$(
42+
cd artifacts &&
43+
ls -1d wheels___*___* 2>/dev/null \
44+
| sed -E 's/wheels___([^_]+)___.*/\1/' \
45+
| sort -u
46+
)
4747
4848
if [[ -z "$versions" ]]; then
4949
echo "No wheel archives found, skipping."
5050
exit 0
5151
fi
5252
5353
for version in $versions; do
54-
out="output/libfranka_${version}_wheels.zip"
55-
echo "Creating $out from all wheels___${version}___*.zip…"
54+
out="libfranka_${version//\./-}_wheels.zip"
55+
out_full=$(realpath "output/$out")
56+
echo "Creating $out from all wheels___${version}___*.zip"
5657
5758
tmp=$(mktemp -d)
59+
mkdir "$tmp/dist"
5860
# unpack each matching zip into the temp dir
59-
for z in wheels___${version}___*.zip; do
60-
echo " ↳ Unpacking $z"
61-
unzip -q "$z" -d "$tmp"
61+
for z in artifacts/wheels___${version}___*/*.zip; do
62+
echo "Unpacking $z"
63+
tmp2=$(mktemp -d)
64+
unzip -q "$z" -d "$tmp2"
65+
mv $tmp2/dist/* "$tmp/dist/"
66+
rm -rf "$tmp2"
6267
done
6368
6469
# re-combine into a single zip
6570
(
6671
cd "$tmp"
67-
zip -qr "../$out" .
72+
zip -qr "$out_full" .
6873
)
6974
7075
# clean up

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.0.1
1+
1.0.2

0 commit comments

Comments
 (0)