From c00814cad623855869a8e23ad4db728af3a30954 Mon Sep 17 00:00:00 2001 From: Joel Date: Wed, 24 Jun 2026 09:30:07 +0100 Subject: [PATCH] Fix: combinar install dioxus-cli + dx build en un solo paso --- .gitea/workflows/deploy.yml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 9894a48..0964b83 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -29,20 +29,18 @@ jobs: target key: cargo-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }} - - name: Install wasm-pack + dioxus-cli + - name: Install wasm-pack + dioxus-cli + Build Frontend run: | curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh - cargo install dioxus-cli --version 0.6.3 2>/dev/null || echo "dioxus-cli already installed" + cargo install dioxus-cli --version 0.6.3 2>/dev/null || true + export PATH="$HOME/.cargo/bin:/usr/local/cargo/bin:$PATH" + which dx && dx --version + cd frontend + dx build --release - name: Build Backend (Rust) run: cargo build --release -p nutriapp-backend - - name: Build Frontend (Dioxus → WASM) - run: | - export PATH="$HOME/.cargo/bin:$PATH" - cd frontend - dx build --release - - name: Build & Push Docker image env: REGISTRY: k3s.proyectosjoel.com