Closed arjendevos closed 2 years ago
My key is just an RSA key and i've added it to the SECRETS in github. This is my setup:
- name: Setup SSH key uses: shimataro/ssh-key-action@v2 with: key: ${{ env.SSH_KEY }} name: deploy_key # optional known_hosts: unnecessary if_key_exists: ignore # replace / ignore / fail; optional (defaults to fail) - name: Deploy to server run: | eval `ssh-agent -s` ssh-add ~/.ssh/deploy_key rsync -avz ./backend/dist/ root@$SSH_HOST:/serve/backend/ rsync -avz ./frontend/.next/ root@$SSH_HOST:/serve/frontend/
There was a \ at the end of the file
My key is just an RSA key and i've added it to the SECRETS in github. This is my setup: