Skip to content

Commit 926fe16

Browse files
Katia Arestikaresti
authored andcommitted
Adds local deploy script
1 parent adabeea commit 926fe16

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

deploy-guides-local.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/bin/sh
2+
set -e
3+
4+
TUTORIALS_DIR="${1:-$(pwd)}"
5+
WEBSITE_DIR="${2:-$(pwd)/../infinispan.github.io}"
6+
7+
echo "Building guides from: $TUTORIALS_DIR"
8+
echo "Deploying to website: $WEBSITE_DIR"
9+
10+
cd "$TUTORIALS_DIR"
11+
./mvnw -Pguides -pl docs-maven-plugin package -DskipTests -q
12+
13+
cp target/guides/index.yaml "$WEBSITE_DIR/_data/guides.yaml"
14+
mkdir -p "$WEBSITE_DIR/_guides"
15+
cp target/guides/guides/*.adoc "$WEBSITE_DIR/_guides/"
16+
17+
echo "Done. $(ls target/guides/guides/*.adoc | wc -l | tr -d ' ') guides deployed."

0 commit comments

Comments
 (0)