mirror of
https://github.com/Ellpeck/TinyLifeWeb.git
synced 2024-11-22 11:23:29 +01:00
only deploy on main branch
This commit is contained in:
parent
da72f806b4
commit
1d93dfd055
1 changed files with 1 additions and 0 deletions
1
.github/workflows/web.yml
vendored
1
.github/workflows/web.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue