From 1d528a22d2374dfecd05c1f19f6560dee5cdfe43 Mon Sep 17 00:00:00 2001 From: Tan Nguyen Date: Sun, 27 Oct 2024 01:09:54 +0700 Subject: [PATCH] Create deploy.yml --- .github/workflows/deploy.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..a09cc03 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,22 @@ +name: Deploy CSlant Server + +on: + push: + branches: + - main + +jobs: + deploy: + runs-on: self-hosted + steps: + - name: Deploy to Remote Host + uses: appleboy/ssh-action@master + with: + host: ${{ secrets.REMOTE_HOST }} + username: ${{ secrets.REMOTE_USERNAME }} + password: ${{ secrets.REMOTE_PASS }} + #key: ${{ secrets.SSH_PRIVATE_KEY }} + port: ${{ secrets.REMOTE_PORT }} + script: | + cd ${{ secrets.DOCS_RUNNER_PATH }} + ./runner.sh a &>/dev/null