This commit is contained in:
Vivek Teega 2023-12-09 13:58:29 +05:30
parent b2601f09f3
commit 2f428a70b2

View File

@ -1,20 +1,15 @@
name: Pull changes and deploy API name: Pull changes and deploy API
on: [push] on: [push]
jobs: jobs:
build: build:
name: Pull changes and deploy API
runs-on: self-hosted runs-on: self-hosted
steps: steps:
- uses: actions/checkout@v1 - name: executing remote ssh commands using password
uses: appleboy/ssh-action@v1.0.0
- name: Executing remote command
uses: appleboy/ssh-action@master
with: with:
host: ${{ secrets.HOST }} host: ${{ secrets.HOST }}
USERNAME: ${{ secrets.USERNAME }} username: ${{ secrets.USERNAME }}
PORT: ${{ secrets.PORT }} password: ${{ secrets.PASSWORD }}
KEY: ${{ secrets.SSHKEY }} port: ${{ secrets.PORT }}
script: ls script: whoami