From 1d93dfd055b33cf3cf2fce73b8f466052d2115e7 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Sat, 13 Jan 2024 17:41:07 +0100 Subject: [PATCH] only deploy on main branch --- .github/workflows/web.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/web.yml b/.github/workflows/web.yml index b400ecd..21741fd 100644 --- a/.github/workflows/web.yml +++ b/.github/workflows/web.yml @@ -20,6 +20,7 @@ jobs: # this is a beautiful way to deploy a website and i will not take any criticism - name: Deploy + if: github.event_name == 'push' && github.ref_name == 'master' 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 "${{ secrets.ELLBOT_KEY }}" > ~/.ssh/id_rsa && chmod 600 ~/.ssh/id_rsa