Skip to content

Latest commit

 

History

History
44 lines (33 loc) · 910 Bytes

File metadata and controls

44 lines (33 loc) · 910 Bytes

English|中文版本

github-webhook

A Github webhook implemention written by Go

what github-webhook can do

You can use "github-webhook" binary executable file to receive the notification when your github project trigger the push event. Once you can receive the push event,you can deploy the website project auto.

How to install

  • build from source
git clone https://github.com/jiangkang/github-webhook.git
cd github-webhook
go build

How to use

  1. create the hook_config.json in the same path of the github-webhook binary
{
  "path_repo" : "/var/www",
  "port": "5678"
}
  1. in path_repo directory mentioned above,you have to git pull the website project from github

  2. execute the script

./github-webhook
  1. add webhook info in your github project

url : "yourdomain/payload"

such as :

https://jiangkang.tech/payload