Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
terminal

GitHub Action

ssh-action-deploy

v2

ssh-action-deploy

terminal

ssh-action-deploy

Deploy has never been so easy, running commands has never been simpler

Installation

Copy and paste the following snippet into your .yml file.

              

- name: ssh-action-deploy

uses: sebastianjnuwu/ssh-action-deploy@v2

Learn more about this action in sebastianjnuwu/ssh-action-deploy

Choose a version


ssh-action-deploy
"What you were looking for all this time to be here, deploy your application"

About

Deploy your application to vps over ssh quickly and easily using github actions...

  • Deploy your application
  • Execute commands
  • Easy and fast

mode of use

Worth remembering if you have any questions or suggestions just open an issue.

Warning

Read this before running ssh-action-deploy

• During deploy the folder you put in is cleaned.

• We use the default ssh port (22) to execute the deploy

• If you want to use several commands, separate them with & or ;.

example

It is very simple to use, see the example:

# Please read the next section below before using for your own safety "variables".
name: 🐥 ssh-action-deploy

on:
  push:
    branches: [ "action" ]
  pull_request:
    branches: [ "action" ]
    
jobs:
  build:
    name: 🕳️ Ubuntu...
    runs-on: ubuntu-latest
    steps:
      - name: 💞 Github actions...
        uses: actions/checkout@v3
      - name: 🌈 Deploy with ssh...
        uses: sebastianjnuwu/ssh-action-deploy@v1
        with:
          IP: ${{ secrets.IP }}
          USER: ${{ secrets.USER }}
          KEY: ${{ secrets.KEY }}
          FOLDER: 'root/.deploy'
          RUN: 'ls -a; pwd'

variables

variable example require
IP 1.1.1.1 true
USER root true
KEY xxxxxx true
FOLDER user/.deploy true
RUN uptime false