From 82eabe9fa712c4315b6b4a3349b24fa25c7f7f79 Mon Sep 17 00:00:00 2001 From: Linnea Gräf Date: Sat, 21 Sep 2024 00:55:21 +0200 Subject: Add manual deploy script --- .github/workflows/manual-publish.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 .github/workflows/manual-publish.sh diff --git a/.github/workflows/manual-publish.sh b/.github/workflows/manual-publish.sh new file mode 100755 index 0000000..381448e --- /dev/null +++ b/.github/workflows/manual-publish.sh @@ -0,0 +1,16 @@ +export SSH_USER="site-deploy" +export SSH_HOST="nea.moe" +export GITHUB_SHA="$(git rev-parse HEAD)-$(openssl rand -hex 10)" + +venv/bin/mkdocs build +scp -r site "$SSH_USER"@"$SSH_HOST":~/new-site-content-$GITHUB_SHA +ssh "$SSH_USER"@"$SSH_HOST" <