We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1ef9e52 commit 31d6b24Copy full SHA for 31d6b24
1 file changed
.github/workflows/deploy.yml
@@ -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