Skip to content

Commit 01d3ef1

Browse files
committed
Update release.yml
1 parent cb003bc commit 01d3ef1

1 file changed

Lines changed: 20 additions & 4 deletions

File tree

.github/workflows/release.yml

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,24 @@ jobs:
8383
with:
8484
tag_name: ${{ github.ref }}
8585
release_name: Release ${{ github.ref }}
86-
draft: true
86+
draft: false
8787
prerelease: false
8888

89+
- name: Debug - List downloaded files
90+
run: |
91+
echo "=== Linux files ==="
92+
find ./out/linux -type f 2>/dev/null || echo "No linux directory found"
93+
echo "=== Windows files ==="
94+
find ./out/windows -type f 2>/dev/null || echo "No windows directory found"
95+
echo "=== Current directory ==="
96+
pwd
97+
ls -la
98+
8999
- name: Find and Upload Linux RPM
90100
run: |
91-
RPM_FILE=$(find ./out/linux/rpm/x64 -name "*.rpm" -type f | head -1)
101+
echo "Searching for RPM files in ./out/linux/rpm/x64/"
102+
ls -la ./out/linux/rpm/x64/ 2>/dev/null || echo "Directory not found"
103+
RPM_FILE=$(find ./out/linux/rpm/x64 -name "*.rpm" -type f 2>/dev/null | head -1)
92104
if [ -n "$RPM_FILE" ]; then
93105
echo "Found RPM file: $RPM_FILE"
94106
gh release upload ${{ github.ref_name }} "$RPM_FILE" --repo ${{ github.repository }} --clobber
@@ -101,7 +113,9 @@ jobs:
101113

102114
- name: Find and Upload Linux DEB
103115
run: |
104-
DEB_FILE=$(find ./out/linux/deb/x64 -name "*.deb" -type f | head -1)
116+
echo "Searching for DEB files in ./out/linux/deb/x64/"
117+
ls -la ./out/linux/deb/x64/ 2>/dev/null || echo "Directory not found"
118+
DEB_FILE=$(find ./out/linux/deb/x64 -name "*.deb" -type f 2>/dev/null | head -1)
105119
if [ -n "$DEB_FILE" ]; then
106120
echo "Found DEB file: $DEB_FILE"
107121
gh release upload ${{ github.ref_name }} "$DEB_FILE" --repo ${{ github.repository }} --clobber
@@ -114,7 +128,9 @@ jobs:
114128

115129
- name: Find and Upload Windows EXE
116130
run: |
117-
EXE_FILE=$(find ./out/windows/squirrel.windows/x64 -name "*.exe" -type f | head -1)
131+
echo "Searching for EXE files in ./out/windows/squirrel.windows/x64/"
132+
ls -la ./out/windows/squirrel.windows/x64/ 2>/dev/null || echo "Directory not found"
133+
EXE_FILE=$(find ./out/windows/squirrel.windows/x64 -name "*.exe" -type f 2>/dev/null | head -1)
118134
if [ -n "$EXE_FILE" ]; then
119135
echo "Found EXE file: $EXE_FILE"
120136
gh release upload ${{ github.ref_name }} "$EXE_FILE" --repo ${{ github.repository }} --clobber

0 commit comments

Comments
 (0)