hengkx / ssh-deploy

Github actions ssh auto deploy and execute command

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ssh-deploy

Usage

See action.yml

Basic:

steps:
- uses: hengkx/ssh-deploy@v1.0.1
  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

About

Github actions ssh auto deploy and execute command

License:MIT License


Languages

Language:TypeScript 100.0%