File tree Expand file tree Collapse file tree 1 file changed +2
-15
lines changed
Expand file tree Collapse file tree 1 file changed +2
-15
lines changed Original file line number Diff line number Diff line change @@ -29,26 +29,13 @@ jobs:
2929 SYS=x86_64-linux
3030 nix build .#topology."${SYS}".config.output
3131
32- - name : Find built SVG
33- id : find_svg
34- run : |
35- set -euxo pipefail
36- if [ -f result/topology.svg ]; then
37- echo "svg=result/topology.svg" >> "$GITHUB_OUTPUT"
38- else
39- SVG=$(find result -maxdepth 2 -name '*.svg' | head -n1)
40- if [ -z "$SVG" ]; then
41- echo "No SVG found in build result" >&2
42- exit 1
43- fi
44- echo "svg=$SVG" >> "$GITHUB_OUTPUT"
45- fi
4632
4733 - name : Prepare site content
4834 run : |
4935 set -euxo pipefail
5036 mkdir -p site
51- cp "${{ steps.find_svg.outputs.svg }}" site/topology.svg
37+ test -f result/topology.svg || { echo "result/topology.svg not found" >&2; exit 1; }
38+ cp result/topology.svg site/topology.svg
5239 cat > site/index.html <<'EOF'
5340 <!doctype html>
5441 <html>
You can’t perform that action at this time.
0 commit comments