Skip to content

Commit 95d27b0

Browse files
committed
Allow uploading versions.
1 parent 9415cec commit 95d27b0

File tree

2 files changed

+16
-7
lines changed

2 files changed

+16
-7
lines changed

README.md

+9-6
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,17 @@ Yes.
55
Development
66
-----------
77

8-
# Start a local server
9-
$ bundle exec middleman
8+
``` bash
9+
# Start a local server
10+
$ bundle exec middleman
1011

11-
# Build docs
12-
$ bundle exec rake build
12+
# Build docs
13+
$ bundle exec rake build
1314

14-
# Upload docs
15-
$ bundle exec rake deploy
15+
# Upload docs
16+
$ bundle exec rake deploy
17+
$ bundle exec rake deploy version=0.1.1
18+
```
1619

1720
To do
1821
-----

Rakefile

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Okay!
2+
#
3+
# rake deploy version=0.1.1
4+
15
ENV['github'] ||= 'nadarei/mina'
26
ENV['analytics_id'] ||= 'UA-32476157-1'
37

@@ -10,5 +14,7 @@ end
1014

1115
desc "Updates online documentation"
1216
task :deploy => :build do
13-
system "git update-ghpages #{ENV['github']} -i build"
17+
cmd = "git update-ghpages #{ENV['github']} -i build"
18+
cmd << " -p #{ENV['version']}" if ENV['version']
19+
system cmd
1420
end

0 commit comments

Comments
 (0)