only deploy on main branch

This commit is contained in:
Ell 2024-01-13 17:41:07 +01:00
parent da72f806b4
commit 1d93dfd055

View file

@ -20,6 +20,7 @@ jobs:
# 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: Deploy - name: Deploy
if: github.event_name == 'push' && github.ref_name == 'master'
run: | run: |
curl -L --output cloudflared.deb https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64.deb && sudo dpkg -i cloudflared.deb 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 "${{ secrets.ELLBOT_KEY }}" > ~/.ssh/id_rsa && chmod 600 ~/.ssh/id_rsa mkdir ~/.ssh && echo "${{ secrets.ELLBOT_KEY }}" > ~/.ssh/id_rsa && chmod 600 ~/.ssh/id_rsa