Fix indentation for release artifact packaging step

Corrects indentation of the 'Package and prepare release artifacts' step in the build-linux workflow to ensure proper execution of artifact packaging commands.
This commit is contained in:
Your Name
2025-09-03 22:28:55 +03:00
parent f2d3a0b0ed
commit c57faca4b5
+25 -25
View File
@@ -287,35 +287,35 @@ jobs:
mv "$deb_out" artifacts/ mv "$deb_out" artifacts/
echo "Built native DEB: artifacts/$deb_out" echo "Built native DEB: artifacts/$deb_out"
- name: Package and prepare release artifacts (.AppImage, .rpm, .deb) - name: Package and prepare release artifacts (.AppImage, .rpm, .deb)
shell: bash shell: bash
run: | run: |
version="${{ steps.get_version.outputs.VERSION }}" version="${{ steps.get_version.outputs.VERSION }}"
mkdir -p artifacts mkdir -p artifacts
# Copy AppImage # Copy AppImage
appimage_src=$(ls dist/ytsage-v*.AppImage 2>/dev/null | head -n1 || true) appimage_src=$(ls dist/ytsage-v*.AppImage 2>/dev/null | head -n1 || true)
if [ -n "$appimage_src" ]; then if [ -n "$appimage_src" ]; then
cp "$appimage_src" "artifacts/YTSage-v${version}-${ARCH}.AppImage" cp "$appimage_src" "artifacts/YTSage-v${version}-${ARCH}.AppImage"
echo "Copied AppImage: $appimage_src -> artifacts/YTSage-v${version}-${ARCH}.AppImage" echo "Copied AppImage: $appimage_src -> artifacts/YTSage-v${version}-${ARCH}.AppImage"
else else
echo "Warning: No .AppImage found in dist/" echo "Warning: No .AppImage found in dist/"
fi fi
# Copy RPM (normalize name) # Copy RPM (normalize name)
rpm_src=$(ls dist/ytsage-*.rpm 2>/dev/null | head -n1 || true) rpm_src=$(ls dist/ytsage-*.rpm 2>/dev/null | head -n1 || true)
if [ -n "$rpm_src" ]; then if [ -n "$rpm_src" ]; then
cp "$rpm_src" "artifacts/YTSage-v${version}-${ARCH}.rpm" cp "$rpm_src" "artifacts/YTSage-v${version}-${ARCH}.rpm"
echo "Copied RPM: $rpm_src -> artifacts/YTSage-v${version}-${ARCH}.rpm" echo "Copied RPM: $rpm_src -> artifacts/YTSage-v${version}-${ARCH}.rpm"
else else
echo "Warning: No .rpm found in dist/" echo "Warning: No .rpm found in dist/"
fi fi
# DEB is already staged in artifacts by the native packaging step # DEB is already staged in artifacts by the native packaging step
ls -1 artifacts/*.deb 2>/dev/null || echo "Warning: No .deb found in artifacts/" ls -1 artifacts/*.deb 2>/dev/null || echo "Warning: No .deb found in artifacts/"
echo "Final artifacts:" echo "Final artifacts:"
ls -lh artifacts || true ls -lh artifacts || true
- name: Create/Update draft release - name: Create/Update draft release
uses: softprops/action-gh-release@v1 uses: softprops/action-gh-release@v1