Clean up release workflow now that its working

This commit is contained in:
Filip Tibell 2023-05-06 13:41:57 +02:00
parent 27f9f32269
commit c5f18d1eef
No known key found for this signature in database

View file

@ -124,28 +124,32 @@ jobs:
with: with:
path: ./binaries path: ./binaries
- name: MOVE binaries - name: Discover binaries
shell: bash shell: bash
run: | run: |
cd ./binaries cd ./binaries
echo ""
echo "Binaries dir:"
ls -lhrt ls -lhrt
echo ""
echo "Searching for zipped releases..."
for DIR in * ; do for DIR in * ; do
if [ -d "$DIR" ]; then if [ -d "$DIR" ]; then
cd "$DIR" cd "$DIR"
echo "$DIR"
for FILE in * ; do for FILE in * ; do
if [ ! -d "$FILE" ]; then if [ ! -d "$FILE" ]; then
echo "> $FILE"
if [ "$FILE" = "release.zip" ]; then if [ "$FILE" = "release.zip" ]; then
echo "Found zipped release '$DIR'"
mv "$FILE" "../$DIR.zip" mv "$FILE" "../$DIR.zip"
echo "> MOVED" rm -rf "../$DIR/"
rm -rf "$DIR"
fi fi
fi fi
done done
cd .. cd ..
fi fi
done done
echo ""
echo "Binaries dir:"
ls -lhrt ls -lhrt
cd .. cd ..
@ -157,5 +161,5 @@ jobs:
name: ${{ needs.init.outputs.version }} name: ${{ needs.init.outputs.version }}
tag_name: v${{ needs.init.outputs.version }} tag_name: v${{ needs.init.outputs.version }}
fail_on_unmatched_files: true fail_on_unmatched_files: true
files: ./binaries/lune-*.zip files: ./binaries/*.zip
draft: true draft: true