Skip to content

Commit

Permalink
add deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
tanhongit committed Oct 26, 2024
1 parent 05ecac9 commit 4736320
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 4736320

Please sign in to comment.