Adding step to remove old packages
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Brandon Watson 2022-01-07 16:48:45 -05:00
parent 76438d6811
commit f1d1da0945

View File

@ -69,6 +69,28 @@ steps:
exclude:
- pull_request
- name: remove old package
image: appleboy/drone-ssh
environment:
SSH_USER:
from_secret: ssh_user
settings:
host: homebridge.me
envs:
- SSH_USER
username:
from_secret: ssh_user
key:
from_secret: ssh_key
port: 22
script:
- rm -r /home/$SSH_USER/.npm-global/lib/node_modules/@watsonb8/homebridge-harmony-control
when:
event:
- tag
exclude:
- pull_request
- name: deploy
image: appleboy/drone-ssh
settings: