Jelajahi Sumber

fix: server package upload passed a non-matching glob per job

gnacho 3 bulan lalu
induk
melakukan
4c7f452d0b
1 mengubah file dengan 6 tambahan dan 1 penghapusan
  1. 6 1
      .github/workflows/openwrt-package.yml

+ 6 - 1
.github/workflows/openwrt-package.yml

@@ -249,4 +249,9 @@ jobs:
           echo "Server packages generated:"
           ls -la dist/packages/
           # netpulse_<v>_*.ipk (no colisiona con el tarball netpulse_<v>_linux_*)
-          gh release upload "$TAG" dist/packages/netpulse_*.${{ matrix.format }} dist/packages/netpulse-*.${{ matrix.format }} --clobber
+          files=$(ls dist/packages/netpulse[-_]*.${{ matrix.format }} 2>/dev/null || true)
+          if [ -z "$files" ]; then
+            echo "ERROR: no server package produced" >&2
+            exit 1
+          fi
+          gh release upload "$TAG" $files --clobber