forked from oss-gate/workshop
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
28 lines (23 loc) · 694 Bytes
/
Rakefile
File metadata and controls
28 lines (23 loc) · 694 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
28
require "rabbit/task/slide"
# Edit ./config.yaml to customize meta data
spec = nil
Rabbit::Task::Slide.new do |task|
spec = task.spec
task.spec.files += ["LICENSE", "scenario.md"]
task.spec.files += Dir.glob("images/**/*.*")
# task.spec.files -= Dir.glob("private/**/*.*")
# task.spec.add_runtime_dependency("rabbit-theme-clear-code")
end
desc "Online Workshop"
task :online do
Rabbit::Command::Rabbit.run("scenario-online.rab")
end
desc "Short Workshop"
task :short do
Rabbit::Command::Rabbit.run("scenario-short.rab")
end
desc "Tag #{spec.version}"
task :tag do
sh("git", "tag", "-a", spec.version.to_s, "-m", "Publish #{spec.version}")
sh("git", "push", "--tags")
end