diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 42fb6f1..3c95536 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -50,7 +50,10 @@ jobs: rel="/srv/app/uhhm-portal/releases/${{ github.sha }}" mkdir -p "$rel" cp "$CARGO_TARGET_DIR/release/portal" "$rel/uhhm-portal" - cp -r "$CARGO_TARGET_DIR/site" "$rel/site" + # site-root ("target/site" in Cargo.toml) is project-relative, + # not affected by CARGO_TARGET_DIR - only the plain `cargo build` + # outputs (release/, front/) move with that override. + cp -r target/site "$rel/site" ln -sfn "$rel" /srv/app/uhhm-portal/current # Sourced from this repo's own Settings -> Actions Variables/Secrets,