Skip to content

Latest commit

 

History

History
10 lines (8 loc) · 707 Bytes

README.md

File metadata and controls

10 lines (8 loc) · 707 Bytes

webhook-builder

This php script builds a repository automatically after a commit is pushed to GitHub using webhooks. It should be placed in a web server, so GitHub can access it and create a POST request.

Getting Started:

  1. Clone the repository to be built and change the repository directory ownership to www-data: sudo chown -R www-data:www-data /path/to/repository.
  2. Copy the php script to somewhere inside your web server.
  3. Create a webhook on GitHub, setting the payload URL as the location used in the previous step.
  4. Set the repositoryPath and hookSecret variables at the beginning of the code.
  5. Change the build command according to your project. The default is simply make.