From 3dbdf3fea0f46fbc7a9d317a195cdb04584ad483 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Sat, 13 Jan 2024 17:23:30 +0100 Subject: [PATCH] permissions????? hate this --- .github/workflows/web.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/web.yml b/.github/workflows/web.yml index a84403b..dfd0384 100644 --- a/.github/workflows/web.yml +++ b/.github/workflows/web.yml @@ -22,9 +22,7 @@ jobs: - name: Deploy run: | curl -L --output cloudflared.deb https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64.deb && sudo dpkg -i cloudflared.deb - mkdir ~/.ssh - echo "Host *" >> ~/.ssh/config - echo "StrictHostKeyChecking no" >> ~/.ssh/config - echo "ProxyCommand cloudflared access ssh --hostname %h" >> ~/.ssh/config + mkdir ~/.ssh && chmod 700 ~/.ssh + echo "Host *" >> ~/.ssh/config && echo "ProxyCommand cloudflared access ssh --hostname %h" >> ~/.ssh/config && && chmod 600 ~/.ssh/config echo "${{ secrets.ELLBOT_KEY }}" >> ~/.ssh/id_rsa && chmod 600 ~/.ssh/id_rsa rsync -e "ssh -o StrictHostKeyChecking=no -P 222" -r --delete web/_site/. ellbot@ssh.ellpeck.de:/var/www/tinylifegame