Skip to content

Commit

Permalink
[add]新增服务器部署
Browse files Browse the repository at this point in the history
  • Loading branch information
QJAutumn committed Apr 26, 2023
1 parent 92eb3e0 commit 2070d04
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/online.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Online

on:
push:
branches:
- master

jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Sync
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST_228 }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.SSH_KEY_228 }}
port: ${{ secrets.PORT }}
command_timeout: 20m
script: |
cd /app/website/website-doc-zh-CN
sudo git pull

0 comments on commit 2070d04

Please sign in to comment.