summaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authortoufic ar <contact@toufy.me>2026-07-07 18:29:43 +0300
committertoufic ar <contact@toufy.me>2026-07-07 18:29:43 +0300
commitf7da804e40b990e5f1ee2214a2e2e4984d704f16 (patch)
treeafec975241b8feaf40c72c924217a6a724461c51 /build.sh
downloadwebsite-f7da804e40b990e5f1ee2214a2e2e4984d704f16.tar.gz
website-f7da804e40b990e5f1ee2214a2e2e4984d704f16.zip
initial commit
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/build.sh b/build.sh
new file mode 100755
index 0000000..e950549
--- /dev/null
+++ b/build.sh
@@ -0,0 +1,17 @@
+#!/usr/bin/env bash
+
+set -e
+
+pacman-key --init
+pacman -Syu --noconfirm --needed base-devel git openssh rsync deno
+
+mkdir -p ~/.ssh
+chmod -R 755 ~/.ssh
+cp "$SECRET_SSH" ~/.ssh/id_ed25519
+chmod 600 ~/.ssh/id_ed25519
+echo "aphrodite.toufy.me" | xargs ssh-keyscan >~/.ssh/known_hosts
+
+deno install
+deno run build
+
+rsync -raz --delete ./build/. root@aphrodite.toufy.me:/var/www/toufy.me/