Skip to content

Commit

Permalink
Update backend_deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
zhihao1021 authored Apr 12, 2024
1 parent feef18b commit 1b8c79a
Showing 1 changed file with 17 additions and 16 deletions.
33 changes: 17 additions & 16 deletions .github/workflows/backend_deploy.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,24 @@
name: Auto update backend
name: Update Backend

on:
push:
branches:
- main
- master

jobs:
deploy:
name: pull and update
runs-on: ubuntu-22.04
steps:
- name: Exec SSH command
uses: appleboy/ssh-action@v1.0.3
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.KEY }}
port: ${{ secrets.PORT }}
proxy_host: ${{ secrets.PROXY_HOST }}
proxy_username: ${{ secrets.PROXY_USERNAME }}
proxy_key: ${{ secrets.PROXY_KEY }}
proxy_port: ${{ secrets.PROXY_PORT }}
script_stop: true
script: whoami
- name: deploy
uses: appleboy/ssh-action@v1.0.3
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.KEY }}
port: ${{ secrets.PORT }}
proxy_host: ${{ secrets.PROXY_HOST }}
proxy_username: ${{ secrets.PROXY_USERNAME }}
proxy_key: ${{ secrets.PROXY_KEY }}
proxy_port: ${{ secrets.PROXY_PORT }}
script_stop: true
script: whoami

0 comments on commit 1b8c79a

Please sign in to comment.