From adddb231ccbd4c164ef7d9067d88fe6f8164e2ab Mon Sep 17 00:00:00 2001 From: cel Date: Mon, 13 Aug 2018 15:40:38 -0700 Subject: Add script for publishing site and repo to IPFS --- publish-site.sh | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 publish-site.sh (limited to 'publish-site.sh') diff --git a/publish-site.sh b/publish-site.sh new file mode 100755 index 0000000..8868af5 --- /dev/null +++ b/publish-site.sh @@ -0,0 +1,5 @@ +#!/bin/sh +set -e +git update-server-info +hash="$(ipfs add -prwQH $(git ls-files) .git)" +ipfs name publish --key=dillo-ipfs /ipfs/"$hash" -- cgit v1.2.3