mirror of
https://gitee.com/dify_ai/dify.git
synced 2024-12-02 03:07:59 +08:00
25 lines
560 B
YAML
25 lines
560 B
YAML
name: Deploy Dev
|
|
|
|
on:
|
|
workflow_run:
|
|
workflows: ["Build and Push API & Web"]
|
|
branches:
|
|
- "deploy/dev"
|
|
types:
|
|
- completed
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
if: |
|
|
github.event.workflow_run.conclusion == 'success'
|
|
steps:
|
|
- name: Deploy to server
|
|
uses: appleboy/ssh-action@v0.1.8
|
|
with:
|
|
host: ${{ secrets.SSH_HOST }}
|
|
username: ${{ secrets.SSH_USER }}
|
|
key: ${{ secrets.SSH_PRIVATE_KEY }}
|
|
script: |
|
|
${{ vars.SSH_SCRIPT || secrets.SSH_SCRIPT }}
|