diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index b1bd533..d168a26 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -23,8 +23,8 @@ jobs: run: | hugo \ --minify - - - name: pre-reqs - run: apt update; apt install -y sshpass - name: Deploy to Server - run: sshpass -p "M0dderStella" scp -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -r public/* root@10.0.1.15:/var/www/html/ \ No newline at end of file + run: | + echo "$SSH_KEY" | tr -d '\r' > ~/.ssh/id_rsa + chmod 600 ~/.ssh/id_rsa + scp -i ~/.ssh/id_rsa -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -r public/* bhays@10.0.1.15:/var/www/html/ \ No newline at end of file