From b3970ec3efe200c51124c5a50d5d71fe207ea063 Mon Sep 17 00:00:00 2001 From: Tan Nguyen Date: Fri, 25 Oct 2024 15:40:17 +0700 Subject: [PATCH] Create deploy.yml --- .github/workflows/deploy.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 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..740e122 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,23 @@ +name: Deploy CSlant server + +on: + push: + branches: [ main ] + +jobs: + deploy: + runs-on: self-hosted + timeout-minutes: 60 + + 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