File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
- rm -rf redis-stack-website
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
3
7
repo_dir=$( pwd)
4
- git clone --recurse-submodules https:// $PRIVATE_ACCESS_TOKEN @github.com/redis-stack/redis-stack-website
5
- cd redis-stack- website
6
- pip3 install -r requirements.txt
7
- npm install autoprefixer
8
- REPO_DIR=$repo_dir REPOSITORY_URL=$REPOSITORY_URL PREVIEW_MODE=1 make netlify
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
You can’t perform that action at this time.
0 commit comments