Skip to content

Commit

Permalink
ci: fix ksud release (tiann#2314)
Browse files Browse the repository at this point in the history
  • Loading branch information
dabao1955 authored and rsuntk committed Dec 25, 2024
1 parent 6c7d3c8 commit 92f8814
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,21 @@ jobs:
steps:
- name: Download artifacts
uses: actions/download-artifact@v4

- name: Rename ksud
run: |
mkdir -p ksud
for dir in ./ksud-*; do
if [ -d "$dir" ]; then
echo "----- Rename $dir -----"
ksud_platform_name=$(basename "$dir")
find "$dir" -type f -name "ksud" -path "*/release/*" | while read -r ksud_file; do
if [ -f "$ksud_file" ]; then
mv "$ksud_file" "ksud/$ksud_platform_name"
fi
done
fi
done
- name: Display structure of downloaded files
run: ls -R

Expand All @@ -25,4 +39,4 @@ jobs:
with:
files: |
manager/*.apk
ksud-*
ksud/ksud-*

0 comments on commit 92f8814

Please sign in to comment.