Skip to content

Commit 94d0992

Browse files
committed
fix(topology): svg existence
1 parent 5f7ca23 commit 94d0992

File tree

1 file changed

+2
-15
lines changed

1 file changed

+2
-15
lines changed

.github/workflows/gh-pages.yml

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff 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>

0 commit comments

Comments
 (0)