Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hengkx/ssh-deploy

Github actions ssh auto deploy and execute command
https://github.com/hengkx/ssh-deploy

Last synced: 3 months ago
JSON representation

Github actions ssh auto deploy and execute command

Awesome Lists containing this project

README

        

# ssh-deploy

# Usage

See [action.yml](action.yml)

Basic:
```yaml
steps:
- uses: hengkx/[email protected]
env:
HOST: ${{ secrets.DEPLOY_HOST }}
USERNAME: ${{ secrets.DEPLOY_USERNAME }}
PASSWORD: ${{ secrets.DEPLOY_PASSWORD }}
PORT: ${{ secrets.DEPLOY_PORT }}
SOURCE: 'dist/'
TARGET: ${{ secrets.DEPLOY_DEST_PATH }}
AFTER_COMMAND: 'npm run stop && npm install --production && npm run start'
```

# License

The scripts and documentation in this project are released under the [MIT License](LICENSE)