Skip to content

Run SSH Commands

Actions
This action allows you to run ssh commands
v2.0.7
Latest
Star (2)

action-exec-ssh

With this action you can simply execute ssh commands to your vps.

This gives us the opportunity to deploy the application right away. You should create 2 secrets for host & password. I created some examples below you may use.

Workflow example

name: Execute SSH Commands

on: [push, pull_request, workflow_dispatch]

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - name: Run SSH Commands
      id: ssh
      uses: arthurvanl/action-exec-ssh@v1
      with:
        host: ${{ secrets.HOST }}
        username: root
        password: ${{ secrets.PASSWORD }}
        commands: 'SSH_COMMAND'

The commands keyword can have multiple commands:

commands: |
     ls -a
     apt update
     apt upgrade

Run SSH Commands is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

This action allows you to run ssh commands
v2.0.7
Latest

Run SSH Commands is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.