Skip to content

Commit f61c86c

Browse files
author
Rafa Paradela
committed
Making magic with gruntfile
1 parent 2afe1f1 commit f61c86c

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Diff for: Gruntfile.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,8 @@ module.exports = function (grunt) {
375375
dir: 'dist',
376376
commit: true,
377377
push: true,
378-
message: 'Built %sourceName% from commit %sourceCommit% on branch %sourceBranch%'
378+
// message: 'Built %sourceName% from commit %sourceCommit% on branch %sourceBranch%'
379+
message: grunt.option( "mymessage" )
379380
},
380381
pages: {
381382
options: {

Diff for: deployIt.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
COMMIT_MESSAGE="$(git log --oneline -1 | cut -d " " -f2-)"
33
grunt build
4-
git add dist && git commit -m "Distribution: $COMMIT_MESSAGE"
4+
git add -A dist && git commit -m "Distribution: $COMMIT_MESSAGE"
55
git push origin master
6-
grunt buildcontrol:pages
6+
grunt buildcontrol:pages --mymessage="$COMMIT_MESSAGE"

0 commit comments

Comments
 (0)