deploy.yml: build and publish question_lint alongside the app binary
Deploy / deploy (push) Successful in 1m5s
Deploy / deploy (push) Successful in 1m5s
questions' CI never actually ran this - the binary existed in-repo but nothing built or exposed it. Publish it to the same stable release path as the app binary so questions' lint job can exec it directly (same bare-metal runner/host, no artifact download needed). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 5
parent
3a4cb467bb
commit
1c1cbfc13b
@@ -47,12 +47,21 @@ jobs:
|
|||||||
- name: Build
|
- name: Build
|
||||||
run: SITE_NAME=${{ vars.PORTAL_SITE_NAME }} cargo leptos build --release
|
run: SITE_NAME=${{ vars.PORTAL_SITE_NAME }} cargo leptos build --release
|
||||||
|
|
||||||
|
# cargo-leptos only builds the leptos bin-target ("portal") - the
|
||||||
|
# question-lint utility binary needs its own plain cargo build.
|
||||||
|
- name: Build question-lint
|
||||||
|
run: cargo build --release --bin question_lint --features ssr
|
||||||
|
|
||||||
- name: Ship release
|
- name: Ship release
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
rel="/srv/app/uhhm-portal/releases/${{ github.sha }}"
|
rel="/srv/app/uhhm-portal/releases/${{ github.sha }}"
|
||||||
mkdir -p "$rel"
|
mkdir -p "$rel"
|
||||||
cp "$CARGO_TARGET_DIR/release/portal" "$rel/uhhm-portal"
|
cp "$CARGO_TARGET_DIR/release/portal" "$rel/uhhm-portal"
|
||||||
|
# questions' own CI execs this directly by path (same bare-metal
|
||||||
|
# runner/host as this job, no artifact download needed) instead
|
||||||
|
# of running its own hand-maintained yq/jq subset of these rules.
|
||||||
|
cp "$CARGO_TARGET_DIR/release/question_lint" "$rel/question_lint"
|
||||||
# site-root ("target/site" in Cargo.toml) is project-relative,
|
# site-root ("target/site" in Cargo.toml) is project-relative,
|
||||||
# not affected by CARGO_TARGET_DIR - only the plain `cargo build`
|
# not affected by CARGO_TARGET_DIR - only the plain `cargo build`
|
||||||
# outputs (release/, front/) move with that override.
|
# outputs (release/, front/) move with that override.
|
||||||
|
|||||||
Reference in New Issue
Block a user