Skip to content
This repository has been archived by the owner on Nov 21, 2024. It is now read-only.

Commit

Permalink
Read Github credentials from disk for release
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
benlangfeld committed Aug 11, 2015
1 parent 845493e commit c9df023
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 11 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ libs.min.*
*.log
lcov.info
candy.zip
github-credentials.json
30 changes: 19 additions & 11 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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:'
}
]
}
Expand All @@ -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/**',

This comment has been minimized.

Copy link
@Zash

Zash Dec 19, 2016

Looks like 'res/**' is there twice?

],
dest: './'
},
]
Expand All @@ -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
Expand Down

0 comments on commit c9df023

Please sign in to comment.