Skip to content

jiangkang/github-webhook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A Github webhook implemention written by Go

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages