Deploys a build dir to a new tag with the given version to your plugin's WordPress repo using svn. Now instead of deploying to trunk, this will deploy it to a new tag. This is by design so you can test that the deployed build was uploaded correctly and without corruptions. After you have tested the new tag, you just have to cp the tag to the trunk and then it will be live.
- Will create a new tag with the given version. If the tag already exists it'll override it.
- It commits the files in batches of 500 by default. This is because in medium to large codebases (1,000+ or so files) the plugins repo will timeout and changes will not be committed. So this tool goes through a list of all the files changed ((A)dded, (M)odified, (R)emoved, etc) and it will commit them in batches. Waits 60s per commit to try to prevent rate-limiting.
- Trunk is not touched. You have to update trunk after the new tag is deployed.
Run the installer
curl -L https://raw.githubusercontent.com/neblabs/wp-svn-deploy/main/install.sh | bashThis command expects you to have SVN_USER and SVN_PASS in your environment. Self explanatory what they are.
wp-snv-deploy -slug slug -build dir -version n [--batch-size n] [--message message]# assuming the svn credentials are in the env already
wp-snv-deploy -slug coupons-plus-for-woocommerce -build "$pluginBuildDir" -version 1.2.3# the env needs to have: SVN_USER and SVN_PASS with your wp repo credentials*
SVN_USER="your user" SVN_PASS="your password do not hardcode" wp-snv-deploy -slug coupons-plus-for-woocommerce -build "$pluginBuildDir" -version 1.2.3