File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -37,4 +37,29 @@ if ! [ $AFTER_DEPLOY_RUN ] && [ "$TRAVIS_PHP_VERSION" == "7.0" ]; then
37
37
38
38
# Send data to demo server.
39
39
grunt sftp
40
+
41
+ # Upload to Wordpress SVN
42
+ if [ ! -z " $WP_ORG_PASSWORD " ]; then
43
+
44
+ svn co -q " http://svn.wp-plugins.org/$THEMEISLE_REPO " svn
45
+
46
+ # Copy new content to svn trunk.
47
+ rsync -r -p dist/* svn/trunk
48
+
49
+ # Create new SVN tag.
50
+ mkdir -p svn/tags/$THEMEISLE_VERSION
51
+ rsync -r -p dist/* svn/tags/$THEMEISLE_VERSION
52
+
53
+ # Add new files to SVN
54
+ svn stat svn | grep ' ^?' | awk ' {print $2}' | xargs -I x svn add x@
55
+ # Remove deleted files from SVN
56
+ svn stat svn | grep ' ^!' | awk ' {print $2}' | xargs -I x svn rm --force x@
57
+
58
+ svn stat svn
59
+
60
+ # Commit to SVN
61
+ svn ci --no-auth-cache --username $WPORG_USER --password $WPORG_PASS svn -m " Release v$THEMEISLE_VERSION "
62
+
63
+ fi
64
+
40
65
fi ;
You can’t perform that action at this time.
0 commit comments