diff --git a/jetty-website.sh b/jetty-website.sh
index 11d3fb6..ac3f6bd 100755
--- a/jetty-website.sh
+++ b/jetty-website.sh
@@ -28,6 +28,8 @@ function set_global_variables() {
BUILT_SITE_DIR=$(pwd)/target/site;
UI_BUNDLE_FILE="$(pwd)/ui/build/ui-bundle.zip"
LOG_FILE="$SCRIPT_OUTPUT_DIR/jetty-website.log";
+
+ url="https://olamy.github.io/jetty.website/"
}
function print_settings() {
@@ -195,6 +197,11 @@ function deploy_site() {
exit 1;
fi
+ if [[ $deploy_dir == "mvn" ]]; then
+ ./mvnw -B -e -V scm-publish:publish-scm
+ exit 0;
+ fi
+
if [[ ! -d "$deploy_dir" ]]; then
echo " - creating deployment directory"
mkdir -p $deploy_dir;
@@ -224,7 +231,7 @@ function main() {
set_environment;
#build_ui;
build_site;
- deploy_site "$STAGE_DIR";
+ deploy_site "mvn"; # "$STAGE_DIR";
exit 0;
fi
diff --git a/pom.xml b/pom.xml
index b4b58e1..eca7794 100644
--- a/pom.xml
+++ b/pom.xml
@@ -13,6 +13,12 @@
Webtide
https://webtide.com
+
+
+ github
+ scm:git:git@github.com:olamy/jetty.website.git
+
+
Eclipse Public License - Version 2.0
@@ -28,6 +34,19 @@
18.20.1
+
+
+
+ org.apache.maven.plugins
+ maven-scm-publish-plugin
+ 3.2.1
+
+ gh-pages
+ ${project.build.directory}/site
+
+
+
+
org.antora