Skip to content

Latest commit

 

History

History
executable file
·
31 lines (24 loc) · 2.52 KB

deploy-wp-org.md

File metadata and controls

executable file
·
31 lines (24 loc) · 2.52 KB

Deploy wordpress.org

Initial release

In this section it is explained how to release a new plugin to wordpress.org. Generally the initial release needs to be reviewed by the wordpress.org team so you have to prepare the installable plugin as .zip file locally. Later - when updating the plugin - the GitLab CI is used.

{% hint style="warning" %} Sometimes it is important to directly send a an email to the review team because they should adjust the slug for you. By default the slug is generated through the Plugin Name in index.php. Imagine, your plugin is named WP Real Media Library your generated slug will be wp-real-media-library. But you want real-media-library to be the slug, send an email directly after upload process! {% endhint %}

Enable SVN deploy

When the above initial review got approved you can go on with deployment via CI/CD:

  • In your repository navigate to Settings > CI / CD > Variables
  • Add variable WPORG_SVN_URL: When the plugin gots approved you will get a SVN url, put it here
  • Add variable WPORG_SVN_USERNAME: The username of your wordpress.org user
  • Add variable WPORG_SVN_PASSWORD: The password of your wordpress.org user. You have to protect and - mask it. Note: If you password does not meet the requirements of Masked Variables it does not work. It depends on you: Change your password so it works or leave it unmasked
  • Put some changes to develop branche and merge it to master
  • The CI/CD automatically deploys to wordpress.org