Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

chore: add deploy-knowledge.yml (#39509)

Jyongededa1f4cd8b
diff --git a/.github/workflows/deploy-knowledge.yml b/.github/workflows/deploy-knowledge.yml
new file mode 100644
index 00000000000..26bc39d8bc0
--- /dev/null
+++ b/.github/workflows/deploy-knowledge.yml
@@ -0,0 +1,28 @@
+name: Deploy Knowledge
+
+permissions:
+ contents: read
+
+on:
+ workflow_run:
+ workflows: ["Build and Push API & Web"]
+ branches:
+ - "deploy/konwledge"
+ types:
+ - completed
+
+jobs:
+ deploy:
+ runs-on: depot-ubuntu-24.04
+ if: |
+ github.event.workflow_run.conclusion == 'success' &&
+ github.event.workflow_run.head_branch == 'deploy/konwledge'
+ steps:
+ - name: Deploy to server
+ uses: appleboy/ssh-action@0ff4204d59e8e51228ff73bce53f80d53301dee2 # v1.2.5
+ with:
+ host: ${{ secrets.SSH_NEW_RAG_HOST }}
+ username: ${{ secrets.SSH_USER }}
+ key: ${{ secrets.SSH_PRIVATE_KEY }}
+ script: |
+ ${{ vars.SSH_SCRIPT || secrets.SSH_SCRIPT }}