From f783774c34ce9889f14961d69ceef9967c38a602 Mon Sep 17 00:00:00 2001 From: 9pfs <9pfs@amcforum.wiki> Date: Sat, 6 Apr 2024 18:33:17 -0700 Subject: [PATCH] Actually use workflows correctly --- .forgejo/workflows/deploy.yml | 6 +++++- website-deploy-action.sh | 11 ----------- 2 files changed, 5 insertions(+), 12 deletions(-) delete mode 100755 website-deploy-action.sh diff --git a/.forgejo/workflows/deploy.yml b/.forgejo/workflows/deploy.yml index 719a714..74976a2 100644 --- a/.forgejo/workflows/deploy.yml +++ b/.forgejo/workflows/deploy.yml @@ -11,4 +11,8 @@ jobs: - uses: actions/checkout@v3 - id: deploy run: | - bash website-deploy-action.sh + mkdir ~/.ssh && \ + echo ${{ secrets.DEPLOY_SSH_KEY}} | base64 -d > ~/.ssh/id_ed25519 && \ + cat nest-known-hosts-cache.txt > ~/.ssh/known_hosts && \ + chmod -R go-rwx ~/.ssh && \ + ssh -T -o UserKnownHostsFile=nest-known-hosts-cache.txt h@hackclub.app diff --git a/website-deploy-action.sh b/website-deploy-action.sh deleted file mode 100755 index 0df1bbf..0000000 --- a/website-deploy-action.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash -# Assuming that this is a Debian container. -# apt-get update && \ -# apt-get upgrade -y && \ -# Apparently ssh is installed, lol -# apt install -y openssh-client && \ -mkdir ~/.ssh && \ -echo $DEPLOY_SSH_KEY | base64 -d > ~/.ssh/id_ed25519 && \ -cat nest-known-hosts-cache.txt > ~/.ssh/known_hosts && \ -chmod -R go-rwx ~/.ssh && \ -ssh -T -o UserKnownHostsFile=nest-known-hosts-cache.txt h@hackclub.app