1 | # gulp-github-release
|
2 |
|
3 | Create GitHub releases with assets.
|
4 |
|
5 | ## Installation
|
6 |
|
7 | ```
|
8 | npm install --save-dev gulp-github-release
|
9 | ```
|
10 |
|
11 | ## Usage
|
12 |
|
13 | ```js
|
14 | var release = require('gulp-github-release');
|
15 |
|
16 | gulp.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 |
|
34 | The MIT License (MIT)
|
35 |
|
36 | Copyright (c) 2015 Alexandru Rosianu
|
37 |
|
38 | Permission is hereby granted, free of charge, to any person obtaining a copy
|
39 | of this software and associated documentation files (the "Software"), to deal
|
40 | in the Software without restriction, including without limitation the rights
|
41 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
42 | copies of the Software, and to permit persons to whom the Software is
|
43 | furnished to do so, subject to the following conditions:
|
44 |
|
45 | The above copyright notice and this permission notice shall be included in all
|
46 | copies or substantial portions of the Software.
|
47 |
|
48 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
49 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
50 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
51 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
52 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
53 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
54 | SOFTWARE.
|