- svn (
brew install svn
)
- Make the necessary changes to this Git repository and get your PR merged to the
master
branch.
- Please make sure that the bumped up plugin version is correctly updated in the following files -
gumroad/class-gumroad.php
gumroad/gumroad.php
gumroad/package.json
gumroad/README.txt
- Create and push the Git tag for the new version.
- Checkout the latest copy of the plugin's remote SVN repository to a local directory.
# Here, wp-gumroad-svn is the local directory where the remote SVN repository
# will be checked out
$ svn co https://plugins.svn.wordpress.org/gumroad wp-gumroad-svn
- Checkout to the latest
master
of this Git repository, and copy it to thetrunk
directory of the local SVN repository.
$ cd ~/path-to/wp-gumroad-svn
$ cp -r ~/path-to/wp-gumroad/gumroad/ trunk/
- Ensure that only the expected files have been modified/added in the local SVN repository.
$ svn status
M trunk/README.txt
$ svn diff
Index: trunk/README.txt
===================================================================
--- trunk/README.txt (revision 2640586)
+++ trunk/README.txt (working copy)
@@ -2,7 +2,7 @@
Contributors: karloscarweber, pderksen, nickyoung87, gumroad
Tags: gumroad, gumroad product pages, gumroad overlay, gumroad embed, ecommerce, e-commerce, pdf, javascript, overlay, embed
Requires at least: 3.9
-Tested up to: 5.7.1
+Tested up to: 5.8.2
Stable tag: 3.0.0
- If the changes made to the
trunk
directory look good, copy the currenttrunk
directory to thetags
directory with the intended version.
# Copies "trunk" to a new "X.X.X" directory under "tags" directory,
# where "X.X.X" is the new plugin version, for example - 3.2.1
$ svn cp trunk tags/X.X.X
-
Confirm the changes using
svn status
andsvn diff
. -
Authenticate to the remote SVN repository using the credentials found in 1Password (search for
wordpress plugin
in theEngineering
1Password vault).
$ svn auth
- Once authenticated, commit and push the changes to the remote SVN repository.
$ svn ci -m "Adds feature ABC and bumps version to X.X.X"
-
The pushed changes should reflect at https://plugins.trac.wordpress.org/browser/gumroad.
-
Make sure that https://wordpress.org/plugins/gumroad/ shows the updated plugin version.