Build first

This commit is contained in:
Mats Rauhala 2021-11-26 23:40:33 +02:00
parent 394a511187
commit a762b8b6fe

View File

@ -2,16 +2,13 @@
set -e set -e
if [ ! -d _site ]; then nix build .#rauhala-info
echo "No _site detected"
exit 1
fi
API=/ip4/127.0.0.1/tcp/5001 API=/ip4/127.0.0.1/tcp/5001
function upload() { function upload() {
echo "Uploading.." echo "Uploading.."
hash=$(ipfs --api $API add -r _site --pin=false -Q) hash=$(ipfs --api $API add -r result/share --pin=false -Q)
} }
function pin() { function pin() {