From c57faca4b5d6b3063a9420abfeb8893839c7d708 Mon Sep 17 00:00:00 2001 From: Your Name Date: Wed, 3 Sep 2025 22:28:55 +0300 Subject: [PATCH] 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. --- .github/workflows/build-linux.yml | 50 +++++++++++++++---------------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/.github/workflows/build-linux.yml b/.github/workflows/build-linux.yml index 7bbe2b9..fdc4d8a 100644 --- a/.github/workflows/build-linux.yml +++ b/.github/workflows/build-linux.yml @@ -287,35 +287,35 @@ jobs: mv "$deb_out" artifacts/ echo "Built native DEB: artifacts/$deb_out" - - name: Package and prepare release artifacts (.AppImage, .rpm, .deb) - shell: bash - run: | - version="${{ steps.get_version.outputs.VERSION }}" - mkdir -p artifacts + - name: Package and prepare release artifacts (.AppImage, .rpm, .deb) + shell: bash + run: | + version="${{ steps.get_version.outputs.VERSION }}" + mkdir -p artifacts - # Copy AppImage - appimage_src=$(ls dist/ytsage-v*.AppImage 2>/dev/null | head -n1 || true) - if [ -n "$appimage_src" ]; then - cp "$appimage_src" "artifacts/YTSage-v${version}-${ARCH}.AppImage" - echo "Copied AppImage: $appimage_src -> artifacts/YTSage-v${version}-${ARCH}.AppImage" - else - echo "Warning: No .AppImage found in dist/" - fi + # Copy AppImage + appimage_src=$(ls dist/ytsage-v*.AppImage 2>/dev/null | head -n1 || true) + if [ -n "$appimage_src" ]; then + cp "$appimage_src" "artifacts/YTSage-v${version}-${ARCH}.AppImage" + echo "Copied AppImage: $appimage_src -> artifacts/YTSage-v${version}-${ARCH}.AppImage" + else + echo "Warning: No .AppImage found in dist/" + fi - # Copy RPM (normalize name) - rpm_src=$(ls dist/ytsage-*.rpm 2>/dev/null | head -n1 || true) - if [ -n "$rpm_src" ]; then - cp "$rpm_src" "artifacts/YTSage-v${version}-${ARCH}.rpm" - echo "Copied RPM: $rpm_src -> artifacts/YTSage-v${version}-${ARCH}.rpm" - else - echo "Warning: No .rpm found in dist/" - fi + # Copy RPM (normalize name) + rpm_src=$(ls dist/ytsage-*.rpm 2>/dev/null | head -n1 || true) + if [ -n "$rpm_src" ]; then + cp "$rpm_src" "artifacts/YTSage-v${version}-${ARCH}.rpm" + echo "Copied RPM: $rpm_src -> artifacts/YTSage-v${version}-${ARCH}.rpm" + else + echo "Warning: No .rpm found in dist/" + fi - # 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/" + # 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/" - echo "Final artifacts:" - ls -lh artifacts || true + echo "Final artifacts:" + ls -lh artifacts || true - name: Create/Update draft release uses: softprops/action-gh-release@v1