Skip to content

Commit da096ca

Browse files
committed
Automate most of the release in the fabfile.
1 parent 62687b1 commit da096ca

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

fabfile.py

+18-3
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@
1616
doc_dir = "public/doc"
1717
version = metadata["version"]
1818

19+
@runs_once
20+
def make_site():
21+
local("./jake html")
22+
1923
@parallel
2024
def deploy_site():
2125
target = doc_dir + "/dev/"
@@ -34,7 +38,7 @@ def unrelease_site():
3438

3539
@runs_once
3640
def release_github():
37-
local("git tag v%s" % version)
41+
local("git push all master")
3842
local("git push all v%s" % version)
3943

4044
@runs_once
@@ -45,8 +49,19 @@ def release_npm():
4549
def clean():
4650
local("git clean -fd")
4751

52+
@runs_once
53+
def install_from_scratch():
54+
local("rm -rf node_modules dev")
55+
local("npm install")
56+
local("npm test")
57+
58+
@runs_once
59+
def increment_version(kind="patch"):
60+
local("npm version %s" % kind)
61+
4862
def release():
4963
clean()
64+
install_from_scratch()
65+
make_site()
5066
release_site()
51-
release_github()
52-
release_npm()
67+
local("./jake release-dep")

0 commit comments

Comments
 (0)