This action permits to use mina to deploy your application on your vps. It's is based on ruby:2.5.0 docker image. If you want to run with another version of ruby, you can change the Dockerfile and use your forked version.
Required This is the private ssh key that can access server. Save it to github secrets!
Required Mina command to run. 'deploy' for 'mina deploy'.
Required This is environment to deploy. If not provided it runs 'mina deploy' command.
- name: Mina deploy
id: mina-deploy
uses: marcosanson/mina-action@v1
with:
command: 'deploy'
ssh_private_key: ${{ secrets.SSHPRIVATEKEY }}
Create a ssh key that can access server with user you specified in mina config file. Save it to github secrets. You can use this command to generate it: ssh-keygen -t rsa -b 4096 -C
Add the following line to your mina configuration file:
set :ssh_options, '-o StrictHostKeyChecking=no'