deploy your project to the server via ssh password
the parameter of env reference node-ssh
-
REMOTE_HOST [required]
- server's host. example
127.0.0.1
- server's host. example
-
REMOTE_PORT
- the port of ssh listening in server side. default
22
- the port of ssh listening in server side. default
-
REMOTE_USER [required]
- sensitive information, you should creating and storing encrypted secrets in github. how
-
REMOTE_PASSWORD [required]
- as
REMOTE_USER
- as
-
REMOTE_PATH [required]
- the path where project deployed in server. it should be a absolute path. example:
/home/wwww/project-name
- the path where project deployed in server. it should be a absolute path. example:
-
SOURCE
- the directory which you want to deploy, it's in the GITHUB_WORKSPACE. example:
dist/. the default value is"".
- the directory which you want to deploy, it's in the GITHUB_WORKSPACE. example:
-
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/"