File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed
Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -27,13 +27,15 @@ API_TOKEN=YOUR_GITHUB_SECRET
2727 └── my-site.json
2828```
2929
30- ``` json
30+ ``` js
3131my- site .json
3232
3333{
34- "path" : " /home/code/my-site" ,
34+ " path" : " /home/code/my-site" , // path where repository lives
35+ " cwd" : " /home/user" , // user path for nvm
36+ " node" : " v12.7.0" , // nvm node version to use, if .nvmrc is no supplied
3537 " release" : {
36- "build" : " yarn && yarn build && tar -xvf {{release.sha}}.tar.gz" , # you may use handlebar notation to inject GitHub payload values into your steps
38+ " build" : " yarn && yarn build && tar -xvf {{release.sha}}.tar.gz" , // you may use handlebar notation to inject GitHub payload values into your steps
3739 " deploy" : " rsync -av --delete public/ /var/www/html/my-site" ,
3840 " cleanup" : " rm -rf node_modules/ && rm -rf .cache/ && yarn cache clean"
3941 }
@@ -42,6 +44,8 @@ my-site.json
4244
4345### Adding listener to GitHub Webhooks
4446
47+ ` - Only the ` release` event is supported.
48+ =======
4549As of ` v0.2.1 ` - Only the ` release ` event is supported.
4650
4751` https://{domain}/webhooks/{repo} `
@@ -78,4 +82,4 @@ Within your Apache2 `.conf`
7882``` bash
7983ProxyPass /webhooks http://localhost:5000/webhooks
8084ProxyPassReverse /webhooks https://localhost:5000/webhooks
81- ```
85+ ```
Original file line number Diff line number Diff line change @@ -60,4 +60,4 @@ def processRelease(repo, payload):
6060 process .communicate ()
6161 print ('Release complete!' )
6262
63- return
63+ return
You can’t perform that action at this time.
0 commit comments