Skip to content

Commit 31d6b24

Browse files
committed
fix: reconfigrued workflows
1 parent 1ef9e52 commit 31d6b24

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Deploy to AWS EC2
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Deploy to EC2
14+
uses: appleboy/ssh-action@master
15+
with:
16+
host: ${{ secrets.EC2_HOST }}
17+
username: ${{ secrets.EC2_USER }}
18+
key: ${{ secrets.EC2_SSH_KEY }}
19+
script: |
20+
# Run the deploy script located in the bitwise-deploy repo
21+
# Assumes folder structure: ~../../bitwise-deploy
22+
cd ~../../bitwise-deploy
23+
chmod +x deploy/aws/deploy.sh
24+
./deploy/aws/deploy.sh

0 commit comments

Comments
 (0)