Skip to content

jakob-lilliemarck/action-ssh-deploy

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

ssh deploy

Connect and deploy code over ssh.

name: SSH & SFTP deploy

on:
  push:
    branches:
      - main

jobs:
 main:
    runs-on: ubuntu-latest
    steps:
      - run: |
          mkdir files
          echo "test-1" > ./files/test-1.txt
          echo "test-2" > ./files/test-2.txt
          ls -R

      - uses: jakob-lilliemarck/action-ssh-deploy@v1
        with:
          host: ${{ secrets.HOST }}
          username: ${{ secrets.USERNAME }}
          passphrase: ${{ secrets.PASSWORD }}
          privateKey: ${{ secrets.PRIVATE_KEY }}
          files: |
            files
            source=files/test-2.txt,target=test-2.txt

About

Deploy code to a remote server with SSH and SFTP

Resources

Stars

Watchers

Forks

Packages

No packages published