Created
May 20, 2019 17:16
-
-
Save tmcw/ce00ed14fcf3e607af4d461adcc02e07 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
ipfs daemon & | |
PID1=$! | |
echo "Jekyll building…" | |
bundle exec jekyll build | |
cd _site | |
make-relative https://macwright.org/ | |
hash=`ipfs add -r -q . | tail -1` | |
echo "Root hash: ${hash}" | |
echo "Pinning…" | |
ssh -t pi@raspberrypi.local "ipfs pin add $hash" | |
echo "Pinned." | |
kill $PID1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment