mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 03:32:23 +08:00
depoly: support auto deploy
This commit is contained in:
parent
a0a1243c90
commit
c2c07b0f4b
1
.github/workflows/build-push.yml
vendored
1
.github/workflows/build-push.yml
vendored
|
@ -5,6 +5,7 @@ on:
|
|||
branches:
|
||||
- "main"
|
||||
- "deploy/dev"
|
||||
- "dev/plugin-deploy"
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
|
|
23
.github/workflows/deploy-plugin-dev.yml
vendored
Normal file
23
.github/workflows/deploy-plugin-dev.yml
vendored
Normal file
|
@ -0,0 +1,23 @@
|
|||
name: Deploy Plugin Dev
|
||||
|
||||
on:
|
||||
workflow_run:
|
||||
workflows: ["Build and Push API & Web"]
|
||||
branches:
|
||||
- "dev/plugin-deploy"
|
||||
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: "echo 123"
|
Loading…
Reference in New Issue
Block a user