This opinionated script is about forgetting that you have to deal with SVN for publishing your WordPress plugin to the official repository.
It handles:
./sync.sh \
--plugin-name="search-by-algolia-instant-relevant-results" \
--git-repo="https://github.com/algolia/algoliasearch-wordpress" \
--svn-user=algolia
This will sync your assets, push all tags that do not exist yet and update the trunk.
By default, the script expects your assets to be in a directory named
.wordpress.org
at the root of your Git repository.
You can customize this by providing a relative path to your assets directory:
./sync.sh \
--plugin-name="search-by-algolia-instant-relevant-results" \
--git-repo="https://github.com/algolia/algoliasearch-wordpress" \
--svn-user=algolia \
--assets-dir="screenshots"
Here the script will push the assets from your-git-root/screenshots
directory.
Note that the script will also always try to remove the assets-dir from the trunk and tags releases.
To exclude files from synchronization, you just need to drop a file named
.distignore
in the root of your Git repository.
This file should be formatted just like a .gitignore file.
Checkout an example of .distignore
file here.
The script will then expand every line and exclude matching files from synchronization.
.wordpress.org
directory containing the screenshots to be displayed
on the detail page on the plugin directory.