Skip to content

Commit 6689c88

Browse files
gmoonclaude
andcommitted
Use lattice install script and export --format pages
Replaces hardcoded version download and boilerplate redirect HTML with clean two-line workflow using lattice's install.sh and pages export. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 5b8bc63 commit 6689c88

1 file changed

Lines changed: 2 additions & 18 deletions

File tree

.github/workflows/pages.yml

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -27,26 +27,10 @@ jobs:
2727
uses: actions/checkout@v4
2828

2929
- name: Install lattice
30-
run: |
31-
curl -fsSL https://github.com/forkzero/lattice/releases/latest/download/lattice-0.1.0-x86_64-unknown-linux-gnu.tar.gz -o lattice.tar.gz
32-
tar xzf lattice.tar.gz
33-
mv lattice-*/lattice /usr/local/bin/
34-
lattice --version
30+
run: curl -fsSL https://raw.githubusercontent.com/forkzero/lattice/main/install.sh | sh
3531

3632
- name: Export lattice data
37-
run: |
38-
mkdir -p _site
39-
lattice export --format json > _site/lattice-data.json
40-
cat > _site/index.html << 'HEREDOC'
41-
<!DOCTYPE html>
42-
<html><head>
43-
<meta charset="utf-8">
44-
<meta http-equiv="refresh" content="0;url=https://forkzero.ai/reader?url=https://forkzero.github.io/forkzero.ai/lattice-data.json">
45-
<title>forkzero.ai Lattice</title>
46-
</head><body>
47-
<p>Redirecting to <a href="https://forkzero.ai/reader?url=https://forkzero.github.io/forkzero.ai/lattice-data.json">forkzero.ai Lattice Documentation</a>...</p>
48-
</body></html>
49-
HEREDOC
33+
run: lattice export --format pages --output _site
5034

5135
- name: Upload Pages artifact
5236
uses: actions/upload-pages-artifact@v3

0 commit comments

Comments
 (0)