UNPKG

2.28 kBMarkdownView Raw
1# gulp-github-release
2
3Create GitHub releases with assets.
4
5## Installation
6
7```
8npm install --save-dev gulp-github-release
9```
10
11## Usage
12
13```js
14var release = require('gulp-github-release');
15
16gulp.task('release', function(){
17 gulp.src('./dist/some-file.exe')
18 .pipe(release({
19 token: 'token', // or you can set an env var called GITHUB_TOKEN instead
20 owner: 'remixz', // if missing, it will be extracted from manifest (the repository.url field)
21 repo: 'publish-release', // if missing, it will be extracted from manifest (the repository.url field)
22 tag: 'v1.0.0', // if missing, the version will be extracted from manifest and prepended by a 'v'
23 name: 'publish-release v1.0.0', // if missing, it will be the same as the tag
24 notes: 'very good!', // if missing it will be left undefined
25 draft: false, // if missing it's false
26 prerelease: false, // if missing it's false
27 manifest: require('./package.json') // package.json from which default values will be extracted if they're missing
28 }));
29});
30```
31
32## License
33
34The MIT License (MIT)
35
36Copyright (c) 2015 Alexandru Rosianu
37
38Permission is hereby granted, free of charge, to any person obtaining a copy
39of this software and associated documentation files (the "Software"), to deal
40in the Software without restriction, including without limitation the rights
41to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
42copies of the Software, and to permit persons to whom the Software is
43furnished to do so, subject to the following conditions:
44
45The above copyright notice and this permission notice shall be included in all
46copies or substantial portions of the Software.
47
48THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
49IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
50FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
51AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
52LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
53OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
54SOFTWARE.