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

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

funny-deploy

deploy your project to the server via ssh password

env

the parameter of env reference node-ssh

  • REMOTE_HOST [required]

    • server's host. example 127.0.0.1
  • REMOTE_PORT

    • the port of ssh listening in server side. default 22
  • REMOTE_USER [required]

    • sensitive information, you should creating and storing encrypted secrets in github. how
  • REMOTE_PASSWORD [required]

    • as REMOTE_USER
  • REMOTE_PATH [required]

    • the path where project deployed in server. it should be a absolute path. example: /home/wwww/project-name
  • SOURCE

    • the directory which you want to deploy, it's in the GITHUB_WORKSPACE. example: dist/. the default value is "".
  • example

    on: [push]
    
    jobs:
      deploy:
        runs-on: ubuntu-latest
        name: deploy test
        steps:
          - name: checkout
            uses: actions/checkout@master
    
          - name: deploy
            id: funny-deploy
            uses: BoatNg/funny-deploy@master
            env:
              REMOTE_HOST: "${{ secrets.REMOTE_HOST }}"
              REMOTE_USER: "${{ secrets.REMOTE_USER }}"
              REMOTE_PASSWORD: "${{ secrets.REMOTE_PASSWORD }}"
              REMOTE_PATH: "/home/www/deploy-action"
              SOURCE: "dist/"
    

About

Deploy your project to the server via ssh password

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages