Skip to content

Commit 65adf1f

Browse files
authored
Adds PR previews (#1961)
1 parent 1e511ef commit 65adf1f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

netlify.bash

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/bash
2+
# Prepares the Netlify preview
3+
: ${REDIS_STACK_REPOSITORY:="github.com/redis-stack/redis-stack-website"}
4+
if [[ -n $PRIVATE_ACCESS_TOKEN ]]; then
5+
REDIS_STACK_REPOSITORY="$PRIVATE_ACCESS_TOKEN@$REDIS_STACK_REPOSITORY"
6+
fi
7+
repo_dir=$(pwd)
8+
9+
rm -rf website
10+
git clone --recurse-submodules https://$REDIS_STACK_REPOSITORY website
11+
cd website
12+
REPO_DIR=$repo_dir REPOSITORY_URL=$REPOSITORY_URL PREVIEW_MODE=1 make deps netlify

0 commit comments

Comments
 (0)