Skip to content
play

GitHub Action

SSH Deployment

v2 Latest version

SSH Deployment

play

SSH Deployment

Deploy files to a server using SSH and rsync

Installation

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

              

- name: SSH Deployment

uses: saranraj3195/sparkout-deployment@v2

Learn more about this action in saranraj3195/sparkout-deployment

Choose a version

- name: deploy to server
  uses: saranraj3195/sparkout-deployment@v2
  env:
      DEPLOY_KEY: ${{ secrets.SERVER_SSH_KEY }}
      ARGS: "-avz --delete"
      SERVER_PORT: ${{ secrets.SERVER_PORT }}
      FOLDER: "src/*"
      SERVER_IP: ${{ secrets.SERVER_IP }}
      USERNAME: ${{ secrets.USERNAME }}
      SERVER_DESTINATION: ${{ secrets.SERVER_DESTINATION }}

ARGS: "--progress --delete -avzPh --exclude='.git/' --exclude='bootstrap/cache/' --exclude='public/uploads/' --exclude='storage/' --exclude='.env' --exclude='.github' --exclude='readme.md' "