Skip to content

Commit 73750b3

Browse files
committed
commited? rake task commits instead of fails. is run after build rake task in deploy pre-requisite
1 parent 9ed84c4 commit 73750b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Rakefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ desc "Helper task to check if everything is committed."
99
task :commited? do
1010
output = `git status`
1111
unless /nothing to commit/. =~ output
12-
fail "COMMIT YOUR CHANGES FIRST!"
12+
system "git commit -a"
1313
end
1414
end
1515

1616
desc "Deploys the project to master branch, expects the command `git` to be available."
17-
task :deploy => [:commited?, :build] do
17+
task :deploy => [:build, :commited?] do
1818
Dir.mktmpdir do |tempdir|
1919
print "Copying generated site: _site/* -> #{tempdir}"
2020
FileUtils.cp_r "_site/.", tempdir

0 commit comments

Comments
 (0)