diff options
author | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2018-08-13 15:40:38 -0700 |
---|---|---|
committer | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2018-08-13 15:51:05 -0700 |
commit | adddb231ccbd4c164ef7d9067d88fe6f8164e2ab (patch) | |
tree | 907027764fe6a3e940517ec82504c59f15039749 | |
parent | 4e8feaf569e6ca2bcd23167eaec2f4805a8ab41b (diff) |
Add script for publishing site and repo to IPFS
-rwxr-xr-x | publish-site.sh | 5 |
1 files changed, 5 insertions, 0 deletions
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" |