Skip to content

Flywheel-Support/flywheel-theme-deploy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 

Repository files navigation

Flywheel Theme Deploy Example

Flywheel SSH Deploy

Flywheel Help doc - Deploy to Flywheel via SSH and GitHub Actions

This is an example of how to deploy a theme directory awesome-theme to your site's /wp-content/themes directory on hosted on Flywheel. It is currently set up to deploy to the Flywheel Site on every change commited to the Master or Main branch.

While you can deploy more than just one specific Theme or Plugin, it's recommended to keep your deploys scoped to aviod conflicts.


This deploy example requires two variables, SSH_USER and PRIVATE_KEY to be set in the repositories Actions Secrets.

SSH_USER is the unique SSH User listed when Direct SSHing into the site. This is listed on the Flywheel Site Dashboard > Advanced tab > Connect via SSH.

Connect via SSH in Flywheel Dashboard

In this example, Connect via SSH has the code below displayed:

ssh [email protected]

and the SSH User is:

team+awesome-org+awesome-site

Create a new Action Secret under the Settings tab of the GitHub repository for SSH_USER with the username displayed for your site:

SSH_USER Actions Secret

GitHub Actions Secrets

The second Actions Secret needed is for PRIVATE_KEY. This will be the Private Key conterpart to Public Key set in your Flywheel Account.

Be sure that the SSH Key pair has been created using RSA.

Flywheel Account SSH Keys

More info at this link for SSH Key Access and Management.

Releases

No releases published

Packages

No packages published

Languages