(seaorm): Añade acceso a bases de datos

This commit is contained in:
Manuel Cillero 2026-05-09 13:07:49 +02:00
parent b4284f74f8
commit 23d4fd8a80
22 changed files with 4051 additions and 84 deletions

View file

@ -65,6 +65,7 @@ case "$CRATE" in
# Extensions
--exclude-path "extensions/pagetop-aliner/**/*"
--exclude-path "extensions/pagetop-bootsier/**/*"
--exclude-path "extensions/pagetop-seaorm/**/*"
)
;;
pagetop-aliner)
@ -75,6 +76,10 @@ case "$CRATE" in
CHANGELOG_FILE="extensions/pagetop-bootsier/CHANGELOG.md"
PATH_FLAGS=(--include-path "extensions/pagetop-bootsier/**/*")
;;
pagetop-seaorm)
CHANGELOG_FILE="extensions/pagetop-seaorm/CHANGELOG.md"
PATH_FLAGS=(--include-path "extensions/pagetop-seaorm/**/*")
;;
*)
echo "Error: unsupported crate '$CRATE'" >&2
exit 1
@ -120,7 +125,9 @@ read -r -p "Do you want to proceed with the release of $CRATE? [y/N] " REPLY
echo ""
if [[ ! "$REPLY" =~ ^[Yy]$ ]]; then
echo "Aborting release process." >&2
git restore --worktree -- .
if [[ -n "${PAGETOP_RESTORE_TREE:-}" ]]; then
git restore --worktree -- .
fi
exit 1
fi

View file

@ -43,6 +43,8 @@ cd "$(dirname "$0")/.." || exit 1
# ------------------------------------------------------------------------------
# DRY-RUN (por defecto) o ejecución real con --execute
# ------------------------------------------------------------------------------
export PAGETOP_RESTORE_TREE=1
if [[ "$EXECUTE" != "--execute" ]]; then
echo "Running dry-run (default mode). Add --execute to publish"
cargo release --config "$CONFIG" --package "$CRATE" "$LEVEL"