Fix script configuration format in GitLab CI jobs

Consolidated mixed script formats in upload-packages and package-linux jobs
into single multiline script blocks. GitLab CI requires script sections to be
either:
1. A single multiline string, OR
2. An array of strings (each starting with -)

Mixed formats (individual commands + multiline blocks) are not supported.

Fixed jobs:
- upload-packages: Consolidated all script commands into single multiline block
- package-linux: Consolidated all script commands into single multiline block
This commit is contained in:
Zephyron
2025-09-21 17:09:35 +10:00
parent f9a922c439
commit 14a68ee04b

View File

@@ -386,11 +386,11 @@ package-linux:
# Install AppImage tools
- pacman -S --noconfirm wget
script:
- mkdir -p packages
- cd packages
# Create AppImages for each build
- |
mkdir -p packages
cd packages
# Create AppImages for each build
for build_type in "generic" "steamdeck" "compat"; do
echo "Creating AppImage for ${build_type}..."
@@ -419,17 +419,16 @@ package-linux:
echo "Build directory $BUILD_DIR not found, skipping..."
fi
done
# Create source archive
- cd ..
- git archive --format=tar.gz --prefix=citron-${VERSION_NAME}/ -o packages/citron-${VERSION_NAME}-source.tar.gz HEAD
# Create checksums
- cd packages
- sha256sum *.AppImage *.tar.gz > checksums.txt
# Create package info
- |
# Create source archive
cd ..
git archive --format=tar.gz --prefix=citron-${VERSION_NAME}/ -o packages/citron-${VERSION_NAME}-source.tar.gz HEAD
# Create checksums
cd packages
sha256sum *.AppImage *.tar.gz > checksums.txt
# Create package info
cat > package-info.json << EOF
{
"version": "${VERSION_NAME}",
@@ -448,9 +447,9 @@ package-linux:
}
}
EOF
- echo "Packages created:"
- ls -la *.AppImage *.tar.gz *.txt *.json
echo "Packages created:"
ls -la *.AppImage *.tar.gz *.txt *.json
artifacts:
paths:
- packages/
@@ -530,9 +529,8 @@ upload-packages:
exit 1
fi
}
# Upload Linux packages
- |
# Upload Linux packages
if [ -d "packages" ]; then
cd packages
for file in *.AppImage *.tar.gz *.txt *.json; do
@@ -541,9 +539,8 @@ upload-packages:
fi
done
fi
# Upload Android packages
- |
# Upload Android packages
if [ -d "packages" ] && [ -f "packages/*.apk" ]; then
cd packages
for file in *.apk; do
@@ -552,9 +549,9 @@ upload-packages:
fi
done
fi
- echo "🎉 All packages uploaded successfully!"
- echo "📋 Package Registry URL: ${PACKAGE_REGISTRY_URL}/${PACKAGE_DIR}/"
echo "🎉 All packages uploaded successfully!"
echo "📋 Package Registry URL: ${PACKAGE_REGISTRY_URL}/${PACKAGE_DIR}/"
only:
- main
- master