Skip to content

Commit 50f2c80

Browse files
committed
maven deploying script
1 parent cf85e19 commit 50f2c80

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
LOCAL_GH_PAGES=file:///Users/max/work/automattic/WordPress-Android-gh-pages/

tools/deploy-mvn-artifact.sh

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/bin/sh +v
2+
3+
. tools/deploy-mvn-artifact.conf
4+
PROJECT=WordPressUtils
5+
VERSION=`grep -E 'versionName' $PROJECT/build.gradle \
6+
| sed s/versionName// \
7+
| grep -Eo "[a-zA-Z0-9.-]+"`
8+
GROUPID=org.wordpress
9+
ARTIFACTID=wordpress-utils
10+
AARFILE=$PROJECT/build/outputs/aar/WordPressUtils.aar
11+
12+
# Deploy release build
13+
mvn deploy:deploy-file -Dfile=$AARFILE \
14+
-Durl=$LOCAL_GH_PAGES -DgroupId=$GROUPID \
15+
-DartifactId=$ARTIFACTID -Dversion=$VERSION
16+
17+
echo ========================================
18+
echo
19+
echo \"$GROUPID:$ARTIFACTID:$VERSION\" deployed

0 commit comments

Comments
 (0)