Skip to content
This repository has been archived by the owner on Dec 10, 2023. It is now read-only.

Commit

Permalink
Added deploy to ec2 workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
BuddyLongLegs committed May 9, 2023
1 parent 44db64e commit e30fd0d
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/deploy_latest_code.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Deploy to Production

on:
push:
branches: [main]

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Deploy to Ec2
uses: appleboy/ssh-action@master
with:
host: ${{secrets.EC2_HOSTNAME}}
username: ${{secrets.EC2_USER}}
key: ${{ secrets.AWS_SECRET_KEY }}
port: 22
script: ./deploy-smf-backend.sh

0 comments on commit e30fd0d

Please sign in to comment.