diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 7eecf88..4e7ab06 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -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: |