Skip to content

Commit 5b5165a

Browse files
committed
fix: improve artifact detection in release workflow
Add step to check build output and handle different binary locations
1 parent a505d0a commit 5b5165a

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

.github/workflows/release.yml

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,27 @@ jobs:
7171
source venv/bin/activate
7272
make nuitka
7373
74+
- name: Check build output
75+
run: |
76+
echo "Contents of dist directory:"
77+
ls -la dist/
78+
if [ -d "dist/clipse-gui.dist" ]; then
79+
echo "Contents of clipse-gui.dist:"
80+
ls -la dist/clipse-gui.dist/
81+
fi
82+
7483
- name: Rename artifact
75-
run: mv dist/clipse-gui.dist/clipse-gui.bin \
76-
dist/clipse-gui-v${{ steps.get_version.outputs.version }}-linux-x86_64
84+
run: |
85+
if [ -f "dist/clipse-gui.dist/clipse-gui.bin" ]; then
86+
mv dist/clipse-gui.dist/clipse-gui.bin \
87+
dist/clipse-gui-v${{ steps.get_version.outputs.version }}-linux-x86_64
88+
elif [ -f "dist/clipse-gui.bin" ]; then
89+
mv dist/clipse-gui.bin \
90+
dist/clipse-gui-v${{ steps.get_version.outputs.version }}-linux-x86_64
91+
else
92+
echo "Error: Could not find binary"
93+
exit 1
94+
fi
7795
7896
- name: Upload release
7997
uses: softprops/action-gh-release@v2

0 commit comments

Comments
 (0)