From c5f18d1eef76f11ed85ed903a40a8205cf409f8a Mon Sep 17 00:00:00 2001 From: Filip Tibell Date: Sat, 6 May 2023 13:41:57 +0200 Subject: [PATCH] Clean up release workflow now that its working --- .github/workflows/release.yaml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 96a71fe..2330f21 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -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