update cicd
Some checks failed
Build and Deploy / build (push) Failing after 14s

This commit is contained in:
dealjus 2025-04-29 07:30:52 -07:00
parent e7da3a758f
commit f723fbf9cd

View File

@ -29,6 +29,19 @@ jobs:
- name: Install rsync - name: Install rsync
run: sudo apt-get update && sudo apt-get install -y rsync run: sudo apt-get update && sudo apt-get install -y rsync
- name: Setup SSH key
run: |
mkdir -p ~/.ssh
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
- name: Add server to known_hosts
run: ssh-keyscan ${{ secrets.SERVER_IP }} >> ~/.ssh/known_hosts
- name: Deploy to server
run: rsync -avzP ./dist/ root@${{ secrets.SERVER_IP }}:/var/www/justin.deal/
- name: Install dependencies - name: Install dependencies
run: pnpm install run: pnpm install