Build first
This commit is contained in:
parent
394a511187
commit
a762b8b6fe
@ -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() {
|
||||||
|
Loading…
Reference in New Issue
Block a user