Skip to content

Update main.yml

Update main.yml #31

Workflow file for this run

name: remote ssh command
on:
push:
branches: [ dev ]
workflow_dispatch:
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: executing remote ssh commands using password
uses: appleboy/[email protected]
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
port: ${{ secrets.PORT }}
script: |
eval `ssh-agent -s`
ssh-add ~/.ssh/id_ed25519.pub
cd ${{ secrets.DEV_DIST }}
ls
whoami
git pull