Skip to content

Commit 150c90d

Browse files
Create deploy.yml
1 parent 1a5fd6d commit 150c90d

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Auto Deploy Airchains Docs
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout Repository
14+
uses: actions/checkout@v3
15+
16+
- name: Deploy to Server
17+
uses: appleboy/ssh-action@master
18+
with:
19+
host: 148.113.38.220
20+
username: ubuntu
21+
key: ${{ secrets.DEPLOY_SSH_KEY }}
22+
script: |
23+
echo "🚀 Starting remote deployment..."
24+
chmod +x /home/ubuntu/deploy.sh
25+
/home/ubuntu/deploy.sh
26+
echo "✅ Deployment complete!"

0 commit comments

Comments
 (0)