From 0a4b85a1a8316bd6116e2061abe18b861a054263 Mon Sep 17 00:00:00 2001 From: Marco Pereirinha Date: Fri, 19 Mar 2021 23:56:43 +0000 Subject: [PATCH] Fix SVN deployment of the plugin --- gruntfile.js | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/gruntfile.js b/gruntfile.js index b041d36e7..bf0458ac3 100644 --- a/gruntfile.js +++ b/gruntfile.js @@ -6,6 +6,15 @@ module.exports = function ( grunt ) { .read( 'cloudinary.php' ) .match( /Version:\s*(.+)$/im )[ 1 ]; + const options = { + plugin_slug: + 'cloudinary-image-management-and-manipulation-in-the-cloud-cdn', + plugin_main_file: 'cloudinary.php', + build_dir: '<%= dist_dir %>', + assets_dir: 'assets', + svn_user: 'cloudinary', + }; + grunt.initConfig( { dist_dir: 'build', @@ -56,18 +65,13 @@ module.exports = function ( grunt ) { }, wp_deploy: { - options: { - plugin_slug: - 'cloudinary-image-management-and-manipulation-in-the-cloud-cdn', - plugin_main_file: 'cloudinary.php', - build_dir: '<%= dist_dir %>', - assets_dir: 'assets', - }, default: { // Default deploy to trunk and a tag release. + options, }, assets: { // Deploy only screenshots and icons. + ...options, deploy_trunk: false, deploy_tag: false, },