mirror of
https://github.com/A-Star100/simpliplay-desktop.git
synced 2025-09-17 22:29:38 +00:00
Update draft-release.yml
This commit is contained in:
parent
74d7589809
commit
ef99b5a525
27
.github/workflows/draft-release.yml
vendored
27
.github/workflows/draft-release.yml
vendored
@ -26,7 +26,7 @@ jobs:
|
|||||||
rm -rf all-artifacts
|
rm -rf all-artifacts
|
||||||
mkdir -p all-artifacts
|
mkdir -p all-artifacts
|
||||||
|
|
||||||
# This will download all available artifacts for this run
|
# Download all available artifacts for this run
|
||||||
gh run download --dir all-artifacts || true
|
gh run download --dir all-artifacts || true
|
||||||
|
|
||||||
missing=0
|
missing=0
|
||||||
@ -48,12 +48,26 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Show downloaded files
|
- name: Extract ZIP files and prepare list of files to upload
|
||||||
run: ls -R all-artifacts
|
|
||||||
|
|
||||||
- name: Prepare list of files to upload
|
|
||||||
run: |
|
run: |
|
||||||
find all-artifacts -type f \( -iname "*.exe" -o -iname "*.dmg" -o -iname "*.snap" -o -iname "*.AppImage" \) > upload-files.txt
|
echo "🔍 Extracting ZIP files and collecting allowed files..."
|
||||||
|
|
||||||
|
# Extract all ZIPs to their own folder
|
||||||
|
find all-artifacts -type f -name '*.zip' | while read zipfile; do
|
||||||
|
extract_dir="${zipfile%.zip}"
|
||||||
|
echo "📦 Extracting $zipfile to $extract_dir"
|
||||||
|
unzip -o "$zipfile" -d "$extract_dir"
|
||||||
|
done
|
||||||
|
|
||||||
|
# Find allowed files only inside extracted directories
|
||||||
|
find all-artifacts -type d | while read dir; do
|
||||||
|
if [[ "$dir" == *.zip ]]; then
|
||||||
|
# skip actual zip files
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
find "$dir" -type f \( -iname '*.exe' -o -iname '*.dmg' -o -iname '*.snap' -o -iname '*.AppImage' \)
|
||||||
|
done > upload-files.txt
|
||||||
|
|
||||||
echo "Files to upload:"
|
echo "Files to upload:"
|
||||||
cat upload-files.txt
|
cat upload-files.txt
|
||||||
|
|
||||||
@ -65,4 +79,3 @@ jobs:
|
|||||||
files: $(cat upload-files.txt)
|
files: $(cat upload-files.txt)
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user