From 0d7471fa144fbbff6e0e11208f96ac5a16399772 Mon Sep 17 00:00:00 2001 From: Reza R Pratama Date: Wed, 22 May 2024 11:58:19 -0500 Subject: [PATCH] Create push_to_server.yml --- .github/workflows/push_to_server.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/push_to_server.yml diff --git a/.github/workflows/push_to_server.yml b/.github/workflows/push_to_server.yml new file mode 100644 index 00000000..2ce66f0b --- /dev/null +++ b/.github/workflows/push_to_server.yml @@ -0,0 +1,16 @@ +name: remote to update +on: [push] +jobs: + + build: + name: run command + runs-on: ubuntu-latest + steps: + - name: executing remote command to update + uses: appleboy/ssh-action@v1.0.3 + with: + host: ${{ secrets.SERVER_HOST }} + username: ${{ secrets.SERVER_USERNAME }} + password: ${{ secrets.SERVER_PASSWORD }} + port: ${{ secrets.SERVER_PORT }} + script: ./run_update.sh