mirror of
https://github.com/Xtao-Labs/QQ-GitHub-Bot.git
synced 2025-01-31 07:31:26 +00:00
26 lines
559 B
YAML
26 lines
559 B
YAML
|
name: Deploy
|
||
|
|
||
|
on:
|
||
|
workflow_run:
|
||
|
workflows:
|
||
|
- "Release"
|
||
|
types:
|
||
|
- completed
|
||
|
|
||
|
jobs:
|
||
|
deploy:
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
- name: remote ssh command
|
||
|
uses: appleboy/ssh-action@master
|
||
|
env:
|
||
|
DEPLOY_PATH: ${{ secrets.DEPLOY_PATH }}
|
||
|
with:
|
||
|
host: ${{ secrets.DEPLOY_HOST }}
|
||
|
username: ${{ secrets.DEPLOY_USER }}
|
||
|
key: ${{ secrets.DEPLOY_KEY }}
|
||
|
envs: DEPLOY_PATH
|
||
|
script: |
|
||
|
cd $DEPLOY_PATH
|
||
|
docker-compose up --force-recreate -d
|