The Ultimate Guide to Publishing a WordPress Plugin via SVN
A highly simplified, beginner-friendly deployment tutorial. Forget complex command-line copy/pasting. This guide shows you how to securely manage your trunk, assets, and tags using your computer's visual file manager.
🚀 1. Easy Step-by-Step Deployment Guide
Download the Server Repository (Checkout)
Before you can upload files, you must establish a secure connection with WordPress.org. This command creates a localized directory synced with your plugin's database.
Organize Core Files (Trunk & Assets)
Minimize terminal usage by utilizing your computer's built-in file manager (GUI). Open the downloaded folder and distribute your files:
- Open the trunk folder and paste all your core plugin files (PHP, CSS, JS, readme.txt).
- Open the assets folder and paste your promotional materials (banner-1544x500.png, icon-256x256.png).
Manually Create the Version Tag
A "Tag" is simply a snapshot of your plugin at a specific version. Instead of using SVN copy commands, do it visually:
- Navigate into the tags directory.
- Create a brand new folder and name it exactly after your version (e.g.,
1.0.0). - Go back, copy all contents from your
trunkfolder. - Paste them directly inside the new
tags/1.0.0folder.
readme.txt file is located immediately inside the version folder (not hidden in sub-folders).Scan and Track Changes (Add)
Now, return to your Linux terminal. SVN needs to register the files you just pasted manually. This command forces SVN to scan for new additions.
Publish to WordPress (Commit)
You are ready to go live! Execute the commit command. The terminal will securely prompt you for your WordPress.org username and password.
🛠️ 2. Common SVN Errors & Instant Fixes
SVN is highly strict about file structures. If you face a roadblock, find your error below to resolve it instantly.
tags/version_number/. Then run:
svn commit -m "Fixed folder structure architecture"