diff --git a/.github/workflows/web.yml b/.github/workflows/web.yml index 3ef5c4e..875ca68 100644 --- a/.github/workflows/web.yml +++ b/.github/workflows/web.yml @@ -19,11 +19,11 @@ jobs: run: cd web && bundle exec jekyll build # this is a beautiful way to deploy a website and i will not take any criticism - - name: Setup cloudflared - run: | - curl -L --output cloudflared.deb https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64.deb && sudo dpkg -i cloudflared.deb - nohup cloudflared access ssh --hostname ssh.ellpeck.de --listener localhost:222 & - name: Deploy run: | - 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@localhost:/var/www/tinylifegame + curl -L --output cloudflared.deb https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64.deb && sudo dpkg -i cloudflared.deb + echo "Host * + StrictHostKeyChecking no + ProxyCommand cloudflared access ssh --hostname %h" >> ~/.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