diff options
author | Ben Langfeld <ben@langfeld.me> | 2015-08-11 17:15:49 +0300 |
---|---|---|
committer | Ben Langfeld <ben@langfeld.me> | 2015-08-11 17:15:49 +0300 |
commit | c9df023df66222bee35463e591053ebc8694fc14 (patch) | |
tree | 0eb12390fe81309db18129ac5557ec0c31bc476c | |
parent | 845493e00e41194bad8f439f59324591ced25a51 (diff) |
Read Github credentials from disk for releasev2.1.0
Need to use a token rather than a password. I'll never remember the token.
Trim down the release package to make sure it doesn't include these creds, and also remove other stuff only necessary for development.
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | Gruntfile.js | 30 |
2 files changed, 20 insertions, 11 deletions
@@ -15,3 +15,4 @@ libs.min.* *.log lcov.info candy.zip +github-credentials.json diff --git a/Gruntfile.js b/Gruntfile.js index c51de78..3663775 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -193,16 +193,6 @@ module.exports = function(grunt) { config: 'github-release.options.release.body', type: 'input', message: 'GitHub release body:' - }, - { - config: 'github-release.options.auth.user', - type: 'input', - message: 'GitHub username:' - }, - { - config: 'github-release.options.auth.password', - type: 'password', - message: 'GitHub password:' } ] } @@ -215,7 +205,24 @@ module.exports = function(grunt) { }, files: [ { - src: ['**'], + src: [ + 'example/**', + 'res/**', + 'bower.json', + 'candy.bundle.js', + 'candy.bundle.map', + 'candy.min.js', + 'candy.min.map', + 'CONTRIBUTING.md', + 'CREDITS.md', + 'libs.bundle.js', + 'libs.bundle.map', + 'libs.min.js', + 'LICENSE', + 'package.json', + 'README.md', + 'res/**', + ], dest: './' }, ] @@ -224,6 +231,7 @@ module.exports = function(grunt) { 'github-release': { options: { repository: 'candy-chat/candy', + auth: grunt.file.readJSON('github-credentials.json'), release: { tag_name: 'v' + grunt.file.readJSON('package.json').version, name: 'v' + grunt.file.readJSON('package.json').version |