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.
In this example, Connect via SSH has the code below displayed:
ssh team+awesome-org+awesome-site@ssh.getflywheel.com
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:
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.
More info at this link for SSH Key Access and Management.