mirror of
https://github.com/Ellpeck/TinyLifeWeb.git
synced 2024-11-22 11:23:29 +01:00
forgot that gh actions doesn't allow this
This commit is contained in:
parent
d7bca50207
commit
908843b84a
1 changed files with 6 additions and 6 deletions
12
.github/workflows/web.yml
vendored
12
.github/workflows/web.yml
vendored
|
@ -19,11 +19,11 @@ jobs:
|
||||||
run: cd web && bundle exec jekyll build
|
run: cd web && bundle exec jekyll build
|
||||||
|
|
||||||
# this is a beautiful way to deploy a website and i will not take any criticism
|
# 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
|
- name: Deploy
|
||||||
run: |
|
run: |
|
||||||
echo "${{ secrets.ELLBOT_KEY }}" > ~/.ssh/id_rsa && chmod 600 ~/.ssh/id_rsa
|
curl -L --output cloudflared.deb https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64.deb && sudo dpkg -i cloudflared.deb
|
||||||
rsync -e "ssh -o StrictHostKeyChecking=no -P 222" -r --delete web/_site/. ellbot@localhost:/var/www/tinylifegame
|
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
|
||||||
|
|
Loading…
Reference in a new issue