-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathRakefile
More file actions
27 lines (25 loc) · 740 Bytes
/
Rakefile
File metadata and controls
27 lines (25 loc) · 740 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
desc "Generate flat files"
task :generate do
puts "## Generating site"
system "rm -rf build"
system "mkdir build"
system "./bin/compass compile"
system "cp -r css/ js/ index.html favicon.ico outdated-browser/ build/"
cd "build" do
system "git init"
system "git remote add origin git@github.com:Fraina/Material-Design-ColorPicker.git"
end
end
desc "Push the build to GitHub"
task :push do
puts "## Deploying build to GitHub Pages"
cd "build" do
system "git add ."
system "git add -u"
system "git commit -m \"Site updated at #{Time.now.utc}\""
system "git push origin master:gh-pages --force"
end
end
desc "Generate flat files and deploy to GitHub Pages"
task :deploy => [:generate, :push] do
end