|
|
@@ -164,7 +164,12 @@ jobs:
|
|
|
- name: Collect artifacts
|
|
|
run: |
|
|
|
mkdir -p dist
|
|
|
- cp ../*.deb dist/ 2>/dev/null || cp *.deb dist/ || true
|
|
|
+ DEB=$(ls ../*.deb 2>/dev/null | head -1 || ls *.deb 2>/dev/null | head -1)
|
|
|
+ if [ -z "$DEB" ]; then
|
|
|
+ echo "No Debian package found to collect." >&2
|
|
|
+ exit 1
|
|
|
+ fi
|
|
|
+ cp "$DEB" dist/squidstats_${{ steps.version.outputs.version }}.deb
|
|
|
ls -lh dist/
|
|
|
|
|
|
# ── 9. Upload .deb as workflow artifact ──────────────────────────────
|
|
|
@@ -172,7 +177,7 @@ jobs:
|
|
|
uses: actions/upload-artifact@v4
|
|
|
with:
|
|
|
name: squidstats-${{ steps.version.outputs.version }}-${{ matrix.distro }}
|
|
|
- path: dist/*.deb
|
|
|
+ path: dist/squidstats_${{ steps.version.outputs.version }}.deb
|
|
|
retention-days: 30
|
|
|
|
|
|
# ── 10. Upload lintian report ─────────────────────────────────────────
|
|
|
@@ -216,5 +221,4 @@ jobs:
|
|
|
echo "Using latest existing release: $TAG_NAME"
|
|
|
fi
|
|
|
|
|
|
- ASSET_NAME=$(basename dist/*.deb)
|
|
|
- gh release upload --clobber "$TAG_NAME" dist/*.deb
|
|
|
+ gh release upload --clobber "$TAG_NAME" dist/squidstats_${{ steps.version.outputs.version }}.deb
|