How to upload the plugin changes to the WordPress marketplace.
- Download the plugin repository
Create a directory in Projects called
woomarket/
, and go to it. Use this command to download the plugin.
svn co https://plugins.svn.wordpress.org/plugin-slug
If you already have the project, you can update to the latest version by doing
svn up
-
Make changes Copy plugin and replace files in the
trunk/
directory. -
Make a tag
svn cp trunk tags/SOME_VERSION
- After adding and copying files, you need to add them to the commit.
svn st | grep ^\? | sed 's/? //' | xargs svn add
Once added, check the statuses of the files
svn status
If you see A to every file, this means the files are added. If you see "?" the files haven't been added yet. If you see "!", file(s) are deleted.
In case you need to remove files from commit, which were removed:
svn st | grep ^\! | sed 's/! //' | xargs svn rm
More about files statuses can be found here: https://www.linuxtopia.org/online_books/programming_tool_guides/version_control_with_subversion/svn.tour.cycle_3.html
- Commit and push changes Before committing, check statuses again, you shouldn't see "!" or "?", only "M", "A", "D". Only then proceed to commit:
svn ci -m "tagging version SOME_VERSION" --username YOURWPUsername
After committing, check statuses again, the list should be empty.
SVN In case svn is not working for you, or it says that there is no such command, try
brew install svn If you still get some errors, try:
brew update If svn still not working, try again the install command.
Files It might be, that when you do "svn status", the list is not full because of too many files. In such case, the output can be saved to file
svn status > output.txt Committing It's possible, that you will get an error about time out while adding files to commit, just try again.