Skip to content

Commit 64a1c91

Browse files
committed
fixed artifacts download failing
1 parent 52acccb commit 64a1c91

File tree

1 file changed

+23
-6
lines changed

1 file changed

+23
-6
lines changed

.github/workflows/release.yml

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -188,15 +188,32 @@ jobs:
188188
secrets:
189189
secrets/data/github repo_readonly_pat | REPO_READONLY_PAT
190190

191-
- name: Download all artifacts
191+
- name: Download executable artifacts
192192
uses: actions/download-artifact@v4
193193
with:
194+
pattern: executable-*
194195
path: ./artifacts
196+
merge-multiple: true
197+
198+
- name: Download Windows installer
199+
uses: actions/download-artifact@v4
200+
with:
201+
name: Cleanuparr-windows-installer
202+
path: ./artifacts
203+
204+
- name: Download macOS installers
205+
uses: actions/download-artifact@v4
206+
with:
207+
pattern: Cleanuparr-macos-*-installer
208+
path: ./artifacts
209+
merge-multiple: true
195210

196211
- name: List downloaded artifacts
197212
run: |
198-
echo "📦 Downloaded artifacts:"
199-
find ./artifacts -type f -name "*.zip" -o -name "*.pkg" -o -name "*.exe" | sort
213+
echo "Downloaded artifacts:"
214+
find ./artifacts -type f \( -name "*.zip" -o -name "*.pkg" -o -name "*.exe" \) | sort
215+
echo ""
216+
echo "Total files: $(find ./artifacts -type f \( -name "*.zip" -o -name "*.pkg" -o -name "*.exe" \) | wc -l)"
200217
201218
- name: Create release
202219
uses: softprops/action-gh-release@v2
@@ -208,9 +225,9 @@ jobs:
208225
target_commitish: main
209226
generate_release_notes: true
210227
files: |
211-
./artifacts/**/*.zip
212-
./artifacts/**/*.pkg
213-
./artifacts/**/*.exe
228+
./artifacts/*.zip
229+
./artifacts/*.pkg
230+
./artifacts/*.exe
214231
215232
# Summary job
216233
summary:

0 commit comments

Comments
 (0)