File tree Expand file tree Collapse file tree 1 file changed +18
-16
lines changed Expand file tree Collapse file tree 1 file changed +18
-16
lines changed Original file line number Diff line number Diff line change @@ -39,20 +39,22 @@ echo "upload_url=$upload_url"
39
39
chmod -R -v +x als-* -$DEBUG
40
40
41
41
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
57
60
done
58
- done
You can’t perform that action at this time.
0 commit comments