File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -64,12 +64,13 @@ jobs:
6464 include-hidden-files : true
6565 if-no-files-found : error
6666 - name : Deploy docs
67- if : startsWith(github.ref, 'refs/tags/')
6867 # this is a beautiful way to deploy a website and i will not take any criticism
6968 run : |
7069 curl -L --output cloudflared.deb https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64.deb && sudo dpkg -i cloudflared.deb
7170 mkdir ~/.ssh && echo "${{ secrets.ELLBOT_KEY }}" > ~/.ssh/id_rsa && chmod 600 ~/.ssh/id_rsa
72- rsync -rv --delete -e 'ssh -o "ProxyCommand cloudflared access ssh --hostname %h" -o "StrictHostKeyChecking=no"' --exclude /demo Docs/_site/. ellbot@ssh.ellpeck.de:/var/www/MLEM
71+ rsync -rv --delete -e 'ssh -o "ProxyCommand cloudflared access ssh --hostname %h" -o "StrictHostKeyChecking=no"' \
72+ --exclude /demo ${{ !startsWith(github.ref, 'refs/tags/') && '--exclude /api' || '' }} \
73+ Docs/_site/. ellbot@ssh.ellpeck.de:/var/www/MLEM
7374 env :
7475 TUNNEL_SERVICE_TOKEN_ID : ${{ secrets.TUNNEL_SERVICE_TOKEN_ID }}
7576 TUNNEL_SERVICE_TOKEN_SECRET : ${{ secrets.TUNNEL_SERVICE_TOKEN_SECRET }}
You can’t perform that action at this time.
0 commit comments