update deploy with ssh

This commit is contained in:
Juan Carlos Manzanero Domínguez 2024-07-08 19:55:40 -06:00
parent d80fa36054
commit ee7ad33efa

View File

@ -11,11 +11,11 @@ jobs:
- name: Deploy using ssh
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.PRIVATE_KEY }}
port: ${{ secrets.PORT }}
script: |
mkdir -p ~/.ssh
echo "${{ secrets.PRIVATE_KEY }}" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
ssh ${{ secrets.USERNAME }}@${{ secrets.HOST }}
cd ~/apps/website
git pull origin main
pnpm run install