Skip to content

Commit 39408c9

Browse files
feat: add Vercel-native deploy previews (#495)
- preview-build.sh: minimal Hugo build using current PR's integration files cloned into haystack-home β€” no tutorials/cookbook/advent steps - vercel.json: wire up build command and output directory - remove GHA preview.yml: Vercel handles PR comments and check status Connect deepset-ai/haystack-integrations as a new Vercel project to activate previews.
1 parent 8d80ed9 commit 39408c9

3 files changed

Lines changed: 22 additions & 89 deletions

File tree

β€Ž.github/workflows/preview.ymlβ€Ž

Lines changed: 0 additions & 89 deletions
This file was deleted.

β€Žpreview-build.shβ€Ž

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/bin/bash
2+
set -euo pipefail
3+
4+
HUGO_VERSION="0.155.2"
5+
wget -q "https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.tar.gz"
6+
tar -xzf "hugo_extended_${HUGO_VERSION}_linux-amd64.tar.gz" hugo
7+
export PATH="$PWD:$PATH"
8+
9+
git clone --depth=1 https://github.com/deepset-ai/haystack-home.git _site
10+
cd _site
11+
12+
cp ../integrations/*.md content/integrations/
13+
cp -R ../logos/* static/logos/ 2>/dev/null || true
14+
15+
npm install
16+
17+
PREVIEW_URL="${VERCEL_URL:-localhost}"
18+
hugo -b "https://${PREVIEW_URL}"

β€Žvercel.jsonβ€Ž

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"buildCommand": "./preview-build.sh",
3+
"outputDirectory": "_site/public"
4+
}

0 commit comments

Comments
Β (0)