WIP
Some checks failed
Some checks failed
This commit is contained in:
parent
d2af2006fd
commit
63422a48e6
@ -62,23 +62,17 @@ jobs:
|
||||
steps:
|
||||
- name: Set up SSH key
|
||||
run: |
|
||||
env
|
||||
mkdir -p ~/.ssh
|
||||
echo 1
|
||||
echo "${{ secrets.HOMEBRIDGE_SSH_KEY }}" > ~/.ssh/id_rsa
|
||||
echo 2
|
||||
chmod 600 ~/.ssh/id_rsa
|
||||
echo 3
|
||||
ssh-keyscan -p 22 homebridge.me >> ~/.ssh/known_hosts
|
||||
echo 4
|
||||
sudo apt update
|
||||
echo 5
|
||||
sudo apt-get install sshpass
|
||||
|
||||
- name: Remove old Package
|
||||
run: |
|
||||
sshpass -p '${{ secrets.HOMEBRIDGE_PASSWORD }}' ssh -v -o StrictHostKeyChecking=no ${{ secrets.HOMEBRIDGE_USER }}@${{ secrets.HOMEBRIDGE_HOST }} <<'ENDSSH'
|
||||
rm -r /home/$SSH_USER/.npm-global/lib/node_modules/@watsonb8/homebridge-hue-chase
|
||||
rm -r /home/${{ secrets.HOMEBRIDGE_USER }/.npm-global/lib/node_modules/@watsonb8/homebridge-hue-chase
|
||||
ENDSSH
|
||||
- name: Deploy
|
||||
run: |
|
||||
|
Loading…
Reference in New Issue
Block a user