simplify: publish rendered PDFs with move
Reportist CI All report validation and rendering checks passed.
Beffroi/reportist/pipeline/head This commit looks good
Details
Reportist CI All report validation and rendering checks passed.
Beffroi/reportist/pipeline/head This commit looks good
Details
This commit is contained in:
parent
eff5e623b7
commit
7a7ba72524
|
|
@ -31,7 +31,7 @@ bash tools/render-all.sh reports --output-dir output
|
|||
|
||||
The renderer validates input before invoking Typst. It stages the report and its
|
||||
branding asset in an isolated temporary project, then publishes the completed
|
||||
PDF atomically. Existing output is rejected unless `--force` is explicit.
|
||||
PDF after a successful render. Existing output is rejected unless `--force` is explicit.
|
||||
|
||||
Logo paths resolve relative to the input report. Absolute paths, parent
|
||||
traversal, and symlinked assets are rejected. Reports without branding use the
|
||||
|
|
|
|||
|
|
@ -55,5 +55,5 @@ if ! "$typst_command" compile --root "$stage" --input "report=report.$format" --
|
|||
"$stage/report.typ" "$stage/report.pdf"; then
|
||||
fail "invalid report or Typst rendering failed"
|
||||
fi
|
||||
if [[ "$force" == true ]]; then mv -f -- "$stage/report.pdf" "$output"; else ln -- "$stage/report.pdf" "$output"; fi
|
||||
if [[ "$force" == true ]]; then mv -f -- "$stage/report.pdf" "$output"; else mv -- "$stage/report.pdf" "$output"; fi
|
||||
echo "Rendered PDF: $output"
|
||||
|
|
|
|||
Loading…
Reference in New Issue