Skip to content

Commit

Permalink
Merge branch 'topic/fix_release' into 'edge'
Browse files Browse the repository at this point in the history
Fix release.sh script

See merge request eng/ide/ada_language_server!1462
  • Loading branch information
reznikmm committed Dec 7, 2023
2 parents 4b13a0b + 2553f7a commit d16dc8b
Showing 1 changed file with 18 additions and 16 deletions.
34 changes: 18 additions & 16 deletions .github/workflows/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,20 +39,22 @@ echo "upload_url=$upload_url"
chmod -R -v +x als-*-$DEBUG

for CROSS in "" "aarch64" ; do
for X in Linux macOS Windows ; do
FILE=als-$TAG-$X${DEBUG:+-debug}_${CROSS:-amd64}.zip
cd als-$X-$DEBUG$CROSS
zip -9 -r ../$FILE .
cd ..

# Upload $FILE as an asset to the release
curl \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: token $GITHUB_ACCESS_TOKEN" \
-H 'Content-Type: application/zip' \
--data-binary @$FILE \
$upload_url?name=$FILE
rm -v -f $FILE
for X in Linux macOS Windows ; do
FILE=als-$TAG-$X${DEBUG:+-debug}_${CROSS:-amd64}.zip
if [ -d als-$X-$DEBUG$CROSS ] ; then
cd als-$X-$DEBUG$CROSS
zip -9 -r ../$FILE .
cd ..

# Upload $FILE as an asset to the release
curl \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: token $GITHUB_ACCESS_TOKEN" \
-H 'Content-Type: application/zip' \
--data-binary @$FILE \
$upload_url?name=$FILE
rm -v -f $FILE
fi
done
done
done

0 comments on commit d16dc8b

Please sign in to comment.