DEV Community

Discussion on: Setting up PM2 CI deployments with Github Actions

Collapse
 
bar22775192 profile image
Bar • Edited

Great solution!
In your workflow config file, you forgot to write the key file in the ~/.ssh/ directory
echo "$SSH_PRIVATE_KEY" > ~/.ssh/deploy.key
(I added the /ssh/ that was missing)