From 47363202de083c141b51c923320b4cc2499a9eac Mon Sep 17 00:00:00 2001 From: Tan Nguyen Date: Sat, 26 Oct 2024 12:45:44 +0700 Subject: [PATCH] add deploy --- .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