Skip to content

Commit a23af67

Browse files
committed
Fix Netlify deploy preview build
Signed-off-by: kahirokunn <okinakahiro@gmail.com>
1 parent b489d8c commit a23af67

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

hack/build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ curl -f -L --show-error https://raw.githubusercontent.com/knative/eventing/main/
7575
echo -e "\nsamples_branch: main\nversion: development\ndoc_base: /docs/versioned/" >> "$TEMP/content/docs/versioned/.meta.yml"
7676
versionjson="{\"version\": \"versioned\", \"title\": \"(Pre-release)\", \"aliases\": [\"\"]}"
7777

78-
# Temporarily force BUILD_VERSIONS (for previews), while this rewrite is testing.
79-
BUILD_VERSIONS="yes"
78+
# Build all versions by default, but allow deploy previews to opt out.
79+
: "${BUILD_VERSIONS:=yes}"
8080

8181
if [ "$BUILD_VERSIONS" != "no" ]; then
8282
mv $TEMP/content/docs/versioned $TEMP/content/docs/development

0 commit comments

Comments
 (0)