mirror of
https://github.com/lune-org/lune.git
synced 2024-12-12 13:00:37 +00:00
Move binaries in release workflow to let release action find them
This commit is contained in:
parent
8c0075d120
commit
27f9f32269
2 changed files with 19 additions and 22 deletions
17
.github/workflows/release.yaml
vendored
17
.github/workflows/release.yaml
vendored
|
@ -124,20 +124,29 @@ jobs:
|
||||||
with:
|
with:
|
||||||
path: ./binaries
|
path: ./binaries
|
||||||
|
|
||||||
- name: List binaries
|
- name: MOVE binaries
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
cd ./binaries
|
cd ./binaries
|
||||||
ls -lhrt
|
ls -lhrt
|
||||||
for DIR in */ ; do
|
for DIR in * ; do
|
||||||
|
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 "$DIR$FILE"
|
echo "> $FILE"
|
||||||
|
if [ "$FILE" = "release.zip" ]; then
|
||||||
|
mv "$FILE" "../$DIR.zip"
|
||||||
|
echo "> MOVED"
|
||||||
|
rm -rf "$DIR"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
cd ..
|
cd ..
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
|
ls -lhrt
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
- name: Create release
|
- name: Create release
|
||||||
|
@ -148,5 +157,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-**
|
files: ./binaries/lune-*.zip
|
||||||
draft: true
|
draft: true
|
||||||
|
|
12
.justfile
12
.justfile
|
@ -32,15 +32,3 @@ generate-gitbook:
|
||||||
# Publish gitbook directory to gitbook branch
|
# Publish gitbook directory to gitbook branch
|
||||||
publish-gitbook: generate-gitbook
|
publish-gitbook: generate-gitbook
|
||||||
npx push-dir --dir=gitbook --branch=gitbook
|
npx push-dir --dir=gitbook --branch=gitbook
|
||||||
|
|
||||||
list:
|
|
||||||
#!/usr/bin/env bash
|
|
||||||
for DIR in */ ; do
|
|
||||||
cd "$DIR"
|
|
||||||
for FILE in * ; do
|
|
||||||
if [ ! -d "$FILE" ]; then
|
|
||||||
echo "$DIR$FILE"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
cd ..
|
|
||||||
done
|
|
||||||
|
|
Loading…
Reference in a new issue