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
c59b9c47ab
commit
74d7589809
12
.github/workflows/draft-release.yml
vendored
12
.github/workflows/draft-release.yml
vendored
@ -51,20 +51,18 @@ jobs:
|
||||
- name: Show downloaded files
|
||||
run: ls -R all-artifacts
|
||||
|
||||
- name: Extract ZIP artifacts
|
||||
- name: Prepare list of files to upload
|
||||
run: |
|
||||
echo "🔍 Looking for ZIP files to extract..."
|
||||
find all-artifacts -type f -name "*.zip" | while read zipfile; do
|
||||
echo "📦 Extracting $zipfile"
|
||||
unzip -o "$zipfile" -d "${zipfile%.*}"
|
||||
done
|
||||
find all-artifacts -type f \( -iname "*.exe" -o -iname "*.dmg" -o -iname "*.snap" -o -iname "*.AppImage" \) > upload-files.txt
|
||||
echo "Files to upload:"
|
||||
cat upload-files.txt
|
||||
|
||||
- name: Create GitHub Draft Release
|
||||
uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
tag_name: "draft-${{ github.run_number }}"
|
||||
draft: true
|
||||
files: all-artifacts/**
|
||||
files: $(cat upload-files.txt)
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user