Skip to content

Commit 78980e3

Browse files
CD
1 parent f279c1b commit 78980e3

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

.github/workflows/main.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Deploy Website
2+
3+
on:
4+
push:
5+
branches:
6+
- main # adjust if your default branch is different
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v4
15+
16+
- name: Run deploy script on server
17+
uses: appleboy/ssh-action@v1.0.3
18+
with:
19+
host: ${{ secrets.SERVER_HOST }}
20+
username: ${{ secrets.SERVER_USER }}
21+
key: ${{ secrets.SERVER_SSH_KEY }}
22+
port: ${{ secrets.SERVER_PORT }}
23+
script: |
24+
cd ~
25+
sh pull_majnet.sh

0 commit comments

Comments
 (0)