Skip to content

Update add_ssh_deploy_server.yml #4

Update add_ssh_deploy_server.yml

Update add_ssh_deploy_server.yml #4

name: add_ssh_deploy_server.yml
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Deploy to server (lokasbot)
uses: appleboy/ssh-action@v1.0.3
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
port: ${{ secrets.PORT }}
#password: ${{ secrets.PASSWORD }}
key: ${{ secrets.KEY }}
# script: whoami
script: |
become lokasbot
cd $Home
sh $Home/actions/lokasbot/pull.sh