[RELEASE] scripts to upload module to Apache staging.
diff --git a/scripts/settings.xml b/scripts/settings.xml
new file mode 100644
index 0000000..92ac71b
--- /dev/null
+++ b/scripts/settings.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
+          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+          xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
+    <servers>
+        <server>
+            <id>apache.releases.https</id>
+            <username>release_manager_login</username>
+            <password>release_manager_password</password>
+        </server>
+    </servers>
+</settings>
diff --git a/scripts/upload_module_to_staging.sh b/scripts/upload_module_to_staging.sh
new file mode 100755
index 0000000..e7194ad
--- /dev/null
+++ b/scripts/upload_module_to_staging.sh
@@ -0,0 +1,68 @@
+#!/usr/bin/env bash
+
+module_version="1.0.0"
+dir_name="release-module-name" #enter module name to release.
+module_name="ignite-${dir_name}"
+dir="../modules/${dir_name}"
+
+server_url="https://repository.apache.org/service/local/staging/deploy/maven2"
+server_id="apache.releases.https"
+
+echo "Uploading $module_name to staging"
+
+now=$(date +'%H%M%S')
+
+main_file=$(find $dir/target -name "${module_name}-${module_version}.jar")
+pom=$(find $dir -name "pom-installed.xml")
+javadoc=$(find $dir/target -name "${module_name}-${module_version}-javadoc.jar")
+sources=$(find $dir/target -name "${module_name}-${module_version}-sources.jar")
+tests=$(find $dir -name "${module_name}-${module_version}-tests.jar")
+
+adds=""
+
+echo "Uploading ${dir}."
+
+if [[ $javadoc == *javadoc* ]]
+then
+	adds="${adds} -Djavadoc=${javadoc}"
+fi
+
+if [[ $sources == *sources* ]]
+then
+	adds="${adds} -Dsources=${sources}"
+fi
+
+if [[ $tests == *tests* ]]
+then
+	adds="${adds} -Dfiles=${tests} -Dtypes=jar -Dclassifiers=tests"
+fi
+
+if [[ ! -n $main_file && ! -n $features ]]
+then
+	main_file=$pom
+	adds="-Dpackaging=pom"
+fi
+
+echo "Directory: $dir"
+echo "File: $main_file"
+echo "Adds: $adds"
+
+mvn gpg:sign-and-deploy-file -Papache_staging -Dfile=$main_file -Durl=$server_url -DrepositoryId=$server_id -DretryFailedDeploymentCount=10 -DpomFile=$pom ${adds} --settings ./settings.xml
+
+result="Uploaded"
+
+while IFS='' read -r line || [[ -n "$line" ]]; do
+    if [[ $line == *ERROR* ]]
+    then
+        result="Uploading failed. Please check log file: ${logname}."
+    fi
+done < ./$logname
+
+echo $result
+
+echo " "
+echo "======================================================"
+echo "Maven staging should be created"
+echo "Please check results at"
+echo "https://repository.apache.org/#stagingRepositories"
+echo "Don't forget to close staging with proper comment"