ci(web): add automatically deployment for HITL frontend

This commit is contained in:
QuantumGhost 2026-01-12 09:43:06 +08:00
parent 471d14f882
commit 3f8f158b04
1 changed files with 26 additions and 0 deletions

26
.github/workflows/deploy-hitl.yml vendored Normal file
View File

@ -0,0 +1,26 @@
name: Deploy Dev
on:
workflow_run:
workflows: ["Build and Push API & Web"]
branches:
- "deploy/dev"
- "feat/hitl-frontend"
types:
- completed
jobs:
deploy:
runs-on: ubuntu-latest
if: |
github.event.workflow_run.conclusion == 'success' &&
github.event.workflow_run.head_branch == 'feat/hitl-frontend'
steps:
- name: Deploy to server
uses: appleboy/ssh-action@v0.1.8
with:
host: ${{ secrets.HITL_SSH_HOST }}
username: ${{ secrets.SSH_USER }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
script: |
${{ vars.SSH_SCRIPT || secrets.SSH_SCRIPT }}