diff options
Diffstat (limited to 'build-n-publish.sh')
-rwxr-xr-x | build-n-publish.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/build-n-publish.sh b/build-n-publish.sh index 9ee2df9..bcd0cdb 100755 --- a/build-n-publish.sh +++ b/build-n-publish.sh @@ -1,8 +1,14 @@ #!/bin/sh +# Make sure the library assets are synchronized: +cd assets/library +git fetch --all && git reset --hard origin/master +cd ../.. + # Build and publish the HTML site: haunt build && haunt publish +# Now convert to Gemini # Uses https://github.com/LukeEmmet/html2gmi # Converts the site into text/gemini; outputs to ./gemini. # There is a publisher which copies that to /home/gemini/gemini/content on the remote. @@ -34,9 +40,13 @@ for pic in $root/site/assets/image/*; do cp $pic $root/gemini/assets/image/ done +# Copy over relevant site assets to Gemland cp $root/site/assets/cv.pdf $root/gemini/assets/ cp $root/site/assets/pubkey.txt $root/gemini/assets/ cp $root/site/feed.xml $root/gemini/ +# Refresh the Gemini site on the server. rsync -r gemini/* root@$remotename:$remotedir ssh root@functorial.xyz "systemctl restart agate" + +# TODO: see if committing and pushing interactively here makes sense. |