Skip to content

Commit

Permalink
#3 Create deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tanhongit authored Nov 14, 2024
1 parent 77e33fa commit d86f6ef
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
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: |
${{ vars.BLOG_API_RUNNER_COMMAND }}

0 comments on commit d86f6ef

Please sign in to comment.