WordPress hosting with GitHub deployments built in

WordPress hosting with GitHub deployments built in

GitHub Deployments is included on Business and Commerce plans.

What is GitHub Deployments?

GitHub Deployments connects a GitHub repository to your WordPress.com site. Choose a branch and a destination, such as a single theme, a single plugin, or your wp-content folder, and WordPress.com copies your code to your site each time you deploy. Public and private repositories both work.

Why deploy from GitHub to WordPress.com?

Keep your GitHub workflow and deploy straight to WordPress.com. It’s included with your hosting.

Deploy on push

Push to your connected branch and WordPress.com deploys the latest commit automatically. Prefer more control? Deploy manually from the Deployments dashboard.

Build and test first

Advanced mode runs a GitHub Actions workflow before each deployment, so you can install Composer and npm dependencies, run builds and tests, and check coding standards.

No deploy plugin needed

GitHub Deployments is built into WordPress.com hosting, so there’s no FTP client, deploy plugin, or third-party service to set up.

How GitHub Deployments works on WordPress.com

Three steps from repository to live site on WordPress.com.

How to deploy from GitHub to WordPress

Connect your repository

Connect your GitHub account to your WordPress.com site and give WordPress.com access to all your repositories or only the ones you choose. Private repositories are supported.

Choose a branch and destination

Pick one branch and the directory to deploy to: a theme, a plugin, or wp-content. Use simple mode to copy files as they are, or advanced mode to run a GitHub Actions workflow. Add a .deployignore file to leave files out.

Deploy

Trigger your first deployment from the Deployments dashboard. After that, deploy automatically on every push or manually when you’re ready, and check the logs for recent runs.

Who uses GitHub Deployments?

If your code lives in GitHub, deploy it to WordPress.com without extra tools.

Agencies

Deploy client themes and plugins from one repository to several WordPress.com sites, and test on staging before launch.

Switching hosts

Already deploy WordPress with git push or a deploy plugin? Connect the same repository to WordPress.com and keep your workflow.

Teams

Review code in pull requests on GitHub, then deploy merged changes automatically to staging and manually to production.

Developers

Keep your theme or plugin in version control, deploy from your connected branch, and check commit, author, and status in the deployment logs.

How does GitHub Deployments compare to a deploy plugin?

FeatureWordPress.com GitHub DeploymentsDeploy plugin or FTP
SetupConnect a repository in your dashboardInstall a plugin or FTP client
CostIncluded on Business and Commerce plansSeparate plugin or service, free or paid
Private repositoriesSupportedVaries by tool
What it deploysA theme, a plugin, or wp-contentVaries by tool
Build stepsComposer, npm, and tests with GitHub ActionsVaries by tool
DestinationsProduction or staging sitesVaries by tool
Deployment logsCommit, author, status, and command logsVaries by tool

GitHub Deployments FAQ

Can I deploy WordPress from GitHub?

Yes. On WordPress.com Business and Commerce plans, GitHub Deployments connects a repository to your site and deploys a theme, a plugin, or wp-content from your chosen branch, automatically on push or manually.

I deploy with git push on another host. Can I switch?

Yes. Connect the same GitHub repository to your WordPress.com site, choose the branch and destination, and deploy. Your code stays in GitHub, so your commit and review workflow doesn’t change.

Can I use a private repository?

Yes. When you connect GitHub, you can give WordPress.com access to all your repositories or only selected ones, public or private.

Can I deploy to a staging site?

Yes. You can deploy to your production site or a WordPress.com staging site. A common setup deploys automatically to staging and manually to production, so you can test before changes go live.

How do I set up GitHub Deployments?

Connect your GitHub account from your WordPress.com site and choose a repository, branch, and destination directory. Then trigger your first deployment. Follow the GitHub Deployments guide for details.

Which WordPress.com plans include GitHub Deployments?

GitHub Deployments is included on the WordPress.com Business and Commerce plans. Compare WordPress.com plans to find the right fit.

Does GitHub Deployments deploy WordPress core?

No. GitHub Deployments only deploys to writable directories, such as your themes, plugins, and wp-content folders. WordPress core, platform files, and managed themes and plugins can’t be deployed.

Can I run a build step before deploying?

Yes. Advanced mode runs a GitHub Actions workflow before each deployment, so you can build, test, and control which files get deployed.

How do I roll back a deployment?

Revert the commit in GitHub, then deploy again. There’s no one-click redeploy of an earlier commit. You can also restore a site backup.

Start deploying
from GitHub

Get WordPress hosting with GitHub Deployments built in.