diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml index 5d288e00..fe83d2e8 100644 --- a/.forgejo/workflows/ci.yml +++ b/.forgejo/workflows/ci.yml @@ -119,9 +119,13 @@ jobs: dpkg-deb --build debian/apt-ostree apt-ostree_0.1.0_amd64.deb fi - # Check if package was created - if ls *.deb >/dev/null 2>&1; then + # Check if package was created (dpkg-buildpackage puts them in parent directory) + if ls ../*.deb >/dev/null 2>&1; then echo "✅ Debian package created successfully" + ls -la ../*.deb + # Copy packages to current directory for CI workflow + cp ../*.deb . + echo "✅ Packages copied to current directory" ls -la *.deb else echo "❌ No Debian package found" @@ -138,8 +142,16 @@ jobs: run: | echo "Testing built package..." - # Find the package + # Find the package (check both current and parent directory) DEB_PACKAGE=$(ls *.deb 2>/dev/null | head -1) + if [ -z "$DEB_PACKAGE" ]; then + DEB_PACKAGE=$(ls ../*.deb 2>/dev/null | head -1) + if [ -n "$DEB_PACKAGE" ]; then + echo "Found package in parent directory, copying to current directory..." + cp ../*.deb . + DEB_PACKAGE=$(ls *.deb 2>/dev/null | head -1) + fi + fi if [ -n "$DEB_PACKAGE" ]; then echo "✅ Found package: $DEB_PACKAGE"