summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFranck Cuny <franckcuny@gmail.com>2016-01-18 13:28:59 -0800
committerFranck Cuny <franckcuny@gmail.com>2016-01-18 13:28:59 -0800
commitf7e32afd4bb79f54c4dc86c1b6589fbc3565b20f (patch)
treed6ba2dbd6f4cff92850cd5b63f91c24aa31f8eab
parentAdd TravisCI badge to the README. (diff)
downloadlumberjaph-f7e32afd4bb79f54c4dc86c1b6589fbc3565b20f.tar.gz
Publish the blog to Google Cloud Storage.
Rename the repository to **lumberjaph.net** and publish the content to a Google Cloud Storage bucket instead of GitHub Pages. Closes #8
-rw-r--r--Makefile6
-rw-r--r--README.md6
2 files changed, 9 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 3952295..e32de9d 100644
--- a/Makefile
+++ b/Makefile
@@ -12,3 +12,9 @@ deps:
test: build
bundle exec htmlproof ./_site --only-4xx --check-html --disable-external
+
+publish: deps build
+ gsutil -m rsync -R _site/ gs://b.lumberjaph.net
+ gsutil -m acl ch -u AllUsers:R -R gs://b.lumberjaph.net/
+ gsutil -m web set -m index.html -e 404.html gs://b.lumberjaph.net
+
diff --git a/README.md b/README.md
index 22573f3..239e45f 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
-# franckcuny.github.io
+# lumberjaph.net
-[![Build Status](https://travis-ci.org/franckcuny/franckcuny.github.io.svg?branch=master)](https://travis-ci.org/franckcuny/franckcuny.github.io)
+[![Build Status](https://travis-ci.org/franckcuny/lumberjaph.net.svg?branch=master)](https://travis-ci.org/franckcuny/lumberjaph.net)
## Setup
@@ -22,4 +22,4 @@ of useful commands:
## Publish
-Start by running `make test` to check that everything is fine. Then run `git push`.
+Run `make publish`.