This commit is contained in:
parent
e7da3a758f
commit
f723fbf9cd
@ -29,6 +29,19 @@ jobs:
|
||||
- name: Install 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
|
||||
run: pnpm install
|
||||
|
Loading…
x
Reference in New Issue
Block a user