Skip to content

Commit 66d55d0

Browse files
authored
Merge branch 'master' into 8-github-injection
2 parents b9d02c4 + ca39d9e commit 66d55d0

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,15 @@ API_TOKEN=YOUR_GITHUB_SECRET
2727
└── my-site.json
2828
```
2929

30-
```json
30+
```js
3131
my-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+
=======
4549
As 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
7983
ProxyPass /webhooks http://localhost:5000/webhooks
8084
ProxyPassReverse /webhooks https://localhost:5000/webhooks
81-
```
85+
```

src/release.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,4 @@ def processRelease(repo, payload):
6060
process.communicate()
6161
print('Release complete!')
6262

63-
return
63+
return

0 commit comments

Comments
 (0)