From 423693b73f88937be51b2351e5b8712d873ddedd Mon Sep 17 00:00:00 2001 From: Vivek Teega Date: Sat, 16 Dec 2023 14:57:18 +0530 Subject: [PATCH] Update deploy-api.yml --- .github/workflows/deploy-api.yml | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/.github/workflows/deploy-api.yml b/.github/workflows/deploy-api.yml index e4d05ca..f597729 100644 --- a/.github/workflows/deploy-api.yml +++ b/.github/workflows/deploy-api.yml @@ -1,20 +1,16 @@ name: Pull changes and deploy API - on: [push] - jobs: + build: - + name: Build runs-on: self-hosted - steps: - - uses: actions/checkout@v1 - - name: Executing remote command - uses: appleboy/ssh-action@master + uses: appleboy/ssh-action@v1.0.0 with: host: ${{ secrets.HOST }} - USERNAME: ${{ secrets.USERNAME }} - PORT: ${{ secrets.PORT }} - KEY: ${{ secrets.SSHKEY }} - script: ls \ No newline at end of file + username: ${{ secrets.USERNAME }} + password: ${{ secrets.PASSWORD }} + port: ${{ secrets.PORT }} + script: whoami