Skip to content

Commit d16dc8b

Browse files
committed
Merge branch 'topic/fix_release' into 'edge'
Fix release.sh script See merge request eng/ide/ada_language_server!1462
2 parents 4b13a0b + 2553f7a commit d16dc8b

File tree

1 file changed

+18
-16
lines changed

1 file changed

+18
-16
lines changed

.github/workflows/release.sh

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -39,20 +39,22 @@ echo "upload_url=$upload_url"
3939
chmod -R -v +x als-*-$DEBUG
4040

4141
for CROSS in "" "aarch64" ; do
42-
for X in Linux macOS Windows ; do
43-
FILE=als-$TAG-$X${DEBUG:+-debug}_${CROSS:-amd64}.zip
44-
cd als-$X-$DEBUG$CROSS
45-
zip -9 -r ../$FILE .
46-
cd ..
47-
48-
# Upload $FILE as an asset to the release
49-
curl \
50-
-X POST \
51-
-H "Accept: application/vnd.github+json" \
52-
-H "Authorization: token $GITHUB_ACCESS_TOKEN" \
53-
-H 'Content-Type: application/zip' \
54-
--data-binary @$FILE \
55-
$upload_url?name=$FILE
56-
rm -v -f $FILE
42+
for X in Linux macOS Windows ; do
43+
FILE=als-$TAG-$X${DEBUG:+-debug}_${CROSS:-amd64}.zip
44+
if [ -d als-$X-$DEBUG$CROSS ] ; then
45+
cd als-$X-$DEBUG$CROSS
46+
zip -9 -r ../$FILE .
47+
cd ..
48+
49+
# Upload $FILE as an asset to the release
50+
curl \
51+
-X POST \
52+
-H "Accept: application/vnd.github+json" \
53+
-H "Authorization: token $GITHUB_ACCESS_TOKEN" \
54+
-H 'Content-Type: application/zip' \
55+
--data-binary @$FILE \
56+
$upload_url?name=$FILE
57+
rm -v -f $FILE
58+
fi
59+
done
5760
done
58-
done

0 commit comments

Comments
 (0)