{"repo":"rtCamp/action-deploy-wordpress","free":true,"listed":false,"github":"https://github.com/rtCamp/action-deploy-wordpress","clone":"git clone https://github.com/rtCamp/action-deploy-wordpress.git","description":"GitHub Action for deploying a WordPress site using using PHP's Deployer.org","language":"Shell","stars":134,"topics":["wordpress","ci-cd","deployer","github-actions","php-deployer","hacktoberfest","tier-2"],"license":"MIT","category":"deployment-docker-iac","readme_excerpt":"This action is a part of GitHub Actions Library created by rtCamp. Deploy WordPress - GitHub Action A GitHub Action to deploy WordPress on a server using PHP's Deployer.org project. Please note that, this action expects git repo structure in a certain way. Your webroot should include content inside wp-content except uploads . You may use our WordPress Skeleton as a base, or restructre existing project to fit in. During deployment, by default this action will download WordPress, put the content of the repo in wp-content directory and then deploy the entire WordPress setup on the deploy path specified in hosts.yml . hosts.yml is Deployer's inventory file. Usage 1. Create a .github/workflows/deploy.yml file in your GitHub repo, if one doesn't exist already. 2. Add the following code to the deploy.yml file. 3. Create SSH PRIVATE KEY secret using GitHub Action's Secret and store the private key that you use use to ssh to server(s) defined in hosts.yml . 4. Create .github/hosts.yml inventory file, based on Deployer inventory file format. Make sure you explictly define GitHub branch mapping. Only the GitHub branches mapped in hosts.yml will be deployed, rest will be filtered out. Here is a sample hosts.yml. Inventory file Variables Mandatory Variable Default Possible Values Purpose --------------- --------- ---------------------------------------------------------------- -------------------------------- user null valid username. eg: root Username for ssh. deploy path null valid path","default_branch":null,"files":null,"tree":[],"storefront":"/r/rtCamp","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/rtCamp/action-deploy-wordpress/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}