commit 52abbc6a86740e4129b4343adad4b18e8626f63a parent ced34bbc1ebe1b966d4d4d951e7a4239a83905ba Author: hrryt <harry@mayesfield.uk> Date: Sat, 12 Sep 2026 23:33:17 +0100 Add publish.sh Diffstat:
| M | .gitignore | | | 2 | +- |
| A | publish.sh | | | 10 | ++++++++++ |
2 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/.gitignore b/.gitignore @@ -2,6 +2,6 @@ package-lock.json node_modules/ dist/ -publish.sh +.env *.cpuprofile diff --git a/publish.sh b/publish.sh @@ -0,0 +1,10 @@ +#!/bin/sh + +npm run build +cd dist +tar -c -f ../dist.tar * +cd .. + +. ./.env +curl http://ttmaths.uk/ -X PUT -H "Authorization: Pages $GIT_PAGES_PASSWORD" -H "Content-Type: application/x-tar" --data-binary @dist.tar +rm dist.tar