Merge pull request #9 from juancmandev/dev

update deploy with ssh
This commit is contained in:
Juan Manzanero
2024-07-09 01:56:25 +00:00
committed by GitHub

View File

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