mirror of
https://github.com/lune-org/lune.git
synced 2024-12-12 04:50:36 +00:00
Clean up release workflow now that its working
This commit is contained in:
parent
27f9f32269
commit
c5f18d1eef
1 changed files with 10 additions and 6 deletions
16
.github/workflows/release.yaml
vendored
16
.github/workflows/release.yaml
vendored
|
@ -124,28 +124,32 @@ jobs:
|
|||
with:
|
||||
path: ./binaries
|
||||
|
||||
- name: MOVE binaries
|
||||
- name: Discover binaries
|
||||
shell: bash
|
||||
run: |
|
||||
cd ./binaries
|
||||
echo ""
|
||||
echo "Binaries dir:"
|
||||
ls -lhrt
|
||||
echo ""
|
||||
echo "Searching for zipped releases..."
|
||||
for DIR in * ; do
|
||||
if [ -d "$DIR" ]; then
|
||||
cd "$DIR"
|
||||
echo "$DIR"
|
||||
for FILE in * ; do
|
||||
if [ ! -d "$FILE" ]; then
|
||||
echo "> $FILE"
|
||||
if [ "$FILE" = "release.zip" ]; then
|
||||
echo "Found zipped release '$DIR'"
|
||||
mv "$FILE" "../$DIR.zip"
|
||||
echo "> MOVED"
|
||||
rm -rf "$DIR"
|
||||
rm -rf "../$DIR/"
|
||||
fi
|
||||
fi
|
||||
done
|
||||
cd ..
|
||||
fi
|
||||
done
|
||||
echo ""
|
||||
echo "Binaries dir:"
|
||||
ls -lhrt
|
||||
cd ..
|
||||
|
||||
|
@ -157,5 +161,5 @@ jobs:
|
|||
name: ${{ needs.init.outputs.version }}
|
||||
tag_name: v${{ needs.init.outputs.version }}
|
||||
fail_on_unmatched_files: true
|
||||
files: ./binaries/lune-*.zip
|
||||
files: ./binaries/*.zip
|
||||
draft: true
|
||||
|
|
Loading…
Reference in a new issue