Skip to content

Commit

Permalink
ci: 📌️修改deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ZRMYDYCG committed Mar 5, 2025
1 parent d7872e3 commit 804eb00
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: TEST SSH

on:
push:
branches:
- master # 触发条件,可以根据需要修改

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2 # 检出代码,包括 deploy.sh 文件

- name: Deploy to Remote Server
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.SERVER_IP }}
username: ${{ secrets.SSH_USER }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
script: |
echo "ssh 连接成功"

0 comments on commit 804eb00

Please sign in to comment.