Skip to content

Commit 4eded09

Browse files
committed
Move to top
1 parent a9d4148 commit 4eded09

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/create_draft_release.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
# It is designed to be run by a GitHub action. To test, from the commandline, supply $VERSION and $GITHUB_TOKEN.
55

66
echo "Zipping the release archives..."
7-
zip libzim_wasm_$VERSION.zip libzim-wasm.*
8-
zip libzim_asm_$VERSION.zip libzim-asm.*
7+
NUMERIC_VERSION=$(sed 's/^v//' <<<"$VERSION")
8+
zip libzim_wasm_$NUMERIC_VERSION.zip libzim-wasm.*
9+
zip libzim_asm_$NUMERIC_VERSION.zip libzim-asm.*
910
echo "Creating the draft release..."
1011
REST_RESPONSE=$(
1112
curl \
@@ -26,7 +27,6 @@ else
2627
fi
2728
# echo "UPLOAD_URL=$REST_RESPONSE" >> $GITHUB_OUTPUT # Use this if you need to access the URL in a later step with steps.zip-release.outputs.UPLOAD_URL
2829
# Upload archives to the draft release
29-
$NUMERIC_VERSION=$(sed 's/^v//' <<<"$VERSION")
3030
for FILE in "libzim_wasm_$NUMERIC_VERSION.zip" "libzim_asm_$NUMERIC_VERSION.zip"
3131
do
3232
echo -e "\nUploading $FILE to $UPLOAD_URL?name=$FILE..."

0 commit comments

Comments
 (0)